vim: sending tab-completion key against a mapped keystroke

Posted by CDR on Super User See other posts from Super User or by CDR
Published on 2012-07-05T05:40:52Z Indexed on 2012/07/05 9:18 UTC
Read the original article Hit count: 189

Filed under:

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?

© Super User or respective owner

Related posts about vim