How do I map the tab key to cycle through and open all the buffers?

You can use the following two map commands, to map the CTRL-Tab key to open the next buffer and the CTRL-SHIFT-Tab key to open the previous buffer:

    :nnoremap  :bnext

    :nnoremap  :bprevious

Note, this might not work in the terminal version of Vim.

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind