macos MacBook 上的 Vim 默认前导键
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11122866/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Vim default leader key on a MacBook
提问by Cydonia7
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.
我在 MacBook Pro 上使用 Vim,为了输入\
,我必须输入Maj + Alt + /
. Vim 的前导键默认是绑定的,\
但输入整个“快捷方式”似乎不能作为前导键使用。
Is there a way to make it work or should I use another leader key like ,
?
有没有办法让它工作,或者我应该使用另一个领导键,
吗?
回答by kev
I use this command:
我使用这个命令:
let mapleader = ','
回答by darryn.ten
Put the following line into your .vimrc in order to use , as your leader
将以下行放入您的 .vimrc 以便使用 , 作为您的领导者
let mapleader = ','
Save your .vimrc and reopen vim. Your leader is now ,
保存您的 .vimrc 并重新打开 vim。你的领导现在是