vim: sending tab-completion key against a mapped keystroke
- by CDR
To switch between buffers without installing any plugins, a good way is to type
:b <tab>
Which shows all the current buffers 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?