Changing the Leader in MacVim?
Question
I'm trying to change <Leader>
in MacVim to be something less carpal-tunnel inducing. I have added this line
let mapleader=","
to my .gvimrc, but "\" is still the only key that works. Am I missing something?
Solution
The line needs to go into your normal .vimrc
(instead of .gvimrc
). .gvimrc
is not read until all plugins have been loaded, by which time all the mappings have already been created with the default map leader.
.gvimrc
is intended only for GUI-specific options, everything else should be in .vimrc
.
OTHER TIPS
I use macvim and it does seem to use the .vimrc I also have leader mapped to that character.
If you are using some scripts to customise your vim you may try to put the let mapleader=","
in your ~/.vimrc.before
file. At least this did the trick for me.