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

How do you create a quick mapping to toggle between buffers?

Answer

nnoremap <leader>b :b#<CR>

Explanation

Map <leader>b to :b# which switches to the alternate buffer. A quick way to toggle between your two most recent files.

Next

How do I visually select a double-quoted string including the quotes themselves?