Use SPACE as mapleader in VIM

configurationcustomizationkeyboard shortcutsmappingvim

From I got that you were supposed to be able to use Space as the mapleader in vim. I've tried but it does not seem to work. Anyone who have made it work?


let mapleader = <space>

Best Answer

Try the following instead:

let mapleader=" "

And remember to write the following line before that, to make sure spacebar doesn't have any mapping beforehand:

nnoremap <SPACE> <Nop>