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

How do you set a custom leader key in Vim?

Answer

let mapleader = ' '

Explanation

Set mapleader to space (or any key) to use as a prefix for custom mappings. Then define mappings like nnoremap <leader>w :w<CR>.

Next

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