Vim default leader key on a MacBook

Cydonia7 picture Cydonia7 · Jun 20, 2012 · Viewed 11.5k times · Source

I use Vim on a MacBook Pro and in order to input \, I have to type in Maj + Alt + /. Vim's leader key is bound by default on \ but typing the whole "shortcut" doesn't seem to work as a leader key.

Is there a way to make it work or should I use another leader key like , ?

Answer

kev picture kev · Jun 20, 2012

I use this command:

let mapleader = ','