vimtricks.wiki Concise Vim tricks, one at a time.

How do I make a mapping that opens a Tab completion menu for buffer switching?

Answer

set wildcharm= then nnoremap b :b

Explanation

wildcharm sets the key that triggers wildmenu expansion inside mappings. Tab does not work in mappings by default. Combined with wildmode=lastused, this gives a fast keyboard-driven buffer picker with one keypress.

Next

How do I replace every character in a visual block selection with the same character?