
何らかの理由で:bnextは:buffersで表示されるすべてのバッファを循環しません
5 つのバッファーが開いているのですが、:bnext を繰り返し使用したときにアクセスされるバッファーは 3 つだけです。
vim で開いているすべてのバッファを循環させるにはどうすればよいでしょうか?
答え1
この特別な動作は、以下で文書化されている可能性があります:help :bnext
:
If you are in a help buffer, this takes you to the next help buffer (if there is one). Similarly, if you are in a normal (non-help) buffer, this takes you to the next normal buffer. This is so that if you have invoked help, it doesn't get in the way when you're browsing code/text buffers.
ナビゲーションに含めるには、:setlocal buftype=
リストされていないバッファは では考慮され:bnext
ません ( を参照:help 'buflisted'
)。ただし、これらをバッファ リストに表示するには、 を使用する必要があります:buffers!
。