Vim default leader key on a MacBook

macos, macvim, vim

Solution

I use this command:

let mapleader = ','

Problem

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 `,` ?

Original source