简体   繁体   中英

Vim default leader key on a MacBook

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

我使用这个命令:

let mapleader = ','

Put the following line into your .vimrc in order to use , as your leader

let mapleader = ','

Save your .vimrc and reopen vim. Your leader is now ,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM