I'm so attached to the emacs way of buffer handling that I just can't get comfortable with vim. It's really the one thing that I just don't get in vim.
I'm so attached to the emacs way of buffer handling that I just can't get comfortable with vim. It's really the one thing that I just don't get in vim.
set hidden
set switchbuf=useopen
Beyond that I just use the basic commands to navigate buffers: :ls, :b, :bl, and ctrl-^
Ctrl-^ (switch to the "alternate" (previous) file) is the one a I use the most really. Especially since windows each have their own alternate file.
Generally, I find remembering buffer numbers in a long-running session no more difficult than remembering inventory letters in Angband ;-)
https://github.com/mcantor/dotfiles/blob/master/vim/.vimrc#L...
It's a very rare use case for me to want to roll through all the open buffers.
Use Ctrl-6 (also referred to as Ctrl-^, C-6 or C-^) to swap between your current buffer and the "alternate" buffer, which is usually the last buffer you were looking at.
Use Ctrl-o and Ctrl-i to track up and down the "jump list". C-o is another good way to get back to the buffer you were just looking at, like C-6.