by johncoltrane · 14y ago · 0 comments
These two lines in your ~/.vimrc are enough to be able to work efficiently with buffers and windows and make tabs more useable:
set hidden
set switchbuf=useopen,usetab
The first makes it possible to replace the current unsaved buffer with another one.The second allows you to jump to a buffer where it is (in another window, another tab) instead of replacing the current buffer with :b buffername.
Only buffer related split commands like :sbuffer, :sbnext