我安装了一些插件,包括NERDCommenter和NERDTree.但是,我不能让领导者的钥匙适合他们.这是我输入时的默认配置:map
v \c<Space> <Plug>NERDCommenterToggle
n \c<Space> <Plug>NERDCommenterToggle
v \cc <Plug>NERDCommenterComment
n \cc <Plug>NERDCommenterComment
Run Code Online (Sandbox Code Playgroud)
\c<space>
就像打击一样c<space>
.我已尝试.vimrc
在我的主目录中使用以下内容重新映射领导者密钥:
let mapleader = ","
Run Code Online (Sandbox Code Playgroud)
这在我重新启动vim并输入时反映出来 :map
v ,c<Space> <Plug>NERDCommenterToggle
n ,c<Space> <Plug>NERDCommenterToggle
v ,cc <Plug>NERDCommenterComment
n ,cc <Plug>NERDCommenterComment
Run Code Online (Sandbox Code Playgroud)
但是,,c<space>
只是表现得像我正在打c<space>
.发生了什么,我该如何解决这个问题?
编辑:在VIM中测试它也具有相同的行为.
vim ×1