To switch between buffers without installing any plugins, a good way is to type
:b <tab>
Which shows all the current buffer names in status bar and you can pick one using cursor keys and enter.
But :b <tab> is 5 keystrokes and I would like to map it to a <leader>.
But setting the following is not working.
:nnoremap <Leader>. :b <Tab>
It shows ":b ^I" in status bar and doesn't actually open the buffer names on status bar.
Anyone knows why?
buffers
(note the 's') command lists the buffers, while thebuffer
(no 's') command, when it is given an option, will change which buffer is shown in the window. – lornix Jul 6 '12 at 0:36