Use SPACE as mapleader in VIM


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 Solution

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>