
Por alguna razón :bnext no realiza un ciclo a través de todos los buffers mostrados por :buffers
Tengo 5 buffers abiertos pero solo se visitan 3 buffers cuando uso :bnext repetidamente.
¿Cómo puedo recorrer todos los buffers abiertos en vim?
Respuesta1
Es posible que estés viendo este comportamiento especial documentado en :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.
Para incluirlos en la navegación, utilice:setlocal buftype=
Búfers no listadostampoco son considerados por :bnext
(cp. :help 'buflisted'
). Pero para que aparezcan en la lista de búfer, tendrías que usar :buffers!
.