简体   繁体   English

Vim不接受“领导者”键-超时设置,重新映射为“,”,但仅发出哔声

[英]Vim does not accept Leader key - timeout set, remapped to “,”, but yet only beeps

I'm new to Vim and currently having issues with my Leader key in MacVim on OSX 10.7, freshly installed. 我是Vim的新手,目前在刚安装的OSX 10.7的MacVim中,我的Leader密钥存在问题。

I've tried remapping the Leader key to ",", using 我尝试使用以下方式将Leader键重新映射为“,”

let mapleader="," 让mapleader =“,”

(in my .vimrc file, at its very top), increased the timeout (to 10000ms). (在我的.vimrc文件的最顶部)中,增加了超时时间(至10000ms)。 I also activated 我也激活了

set showcmd 设置showcmd

To see if it, at all, fires - but it doesnt. 看看它是否会点火-但不会。

:verbose map , :详细地图

does, interestingly, report "no mapping found". 有趣的是,报告“未找到映射”。

Issue resolved - it was my fresh install of everything that simply deactivated the filetype plugin. 问题已解决-这是我重新安装所有文件后才停用的文件类型插件。 Hence, there were no mappings at all. 因此,根本没有映射。

I reactivated the filetype plugin by adding 我通过添加重新激活了文件类型插件

filetype plugin on

to my .vimrc file. 到我的.vimrc文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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