[英]Why does vim say “Not Connected” when I use a remapped key to access a plugin command
I'm trying to use F9 to allow NERDTree to toggle. 我正在尝试使用F9来允许NERDTree切换。 So what I did was the following:
所以我做了以下事情:
nnoremap <silent> <F9> :NERDTreeToggle<CR>
When I hit F9, I get the following message back from vim 当我按F9时,我从vim返回以下消息
Not Connected
Not Connected
Press ENTER or type a command to continue
If I do :source ~/.vimrc
, my remap for F9 works as expected and NerdTree is then toggled as expected. 如果执行
:source ~/.vimrc
source〜 :source ~/.vimrc
,则我对F9的重新映射按预期工作,然后按预期切换NerdTree。
Also if I use the command :NERDTreeToggle
at any point from command mode, it works as well. 另外,如果我在命令模式下的任何位置使用命令
:NERDTreeToggle
,它也可以正常工作。
Any ideas? 有任何想法吗?
Using @michaelmichael's and @romainl's suggestion, I was able to determine that I had a pluging overwriting the key . 通过使用@michaelmichael和@romainl的建议,我可以确定我有一个插头覆盖了密钥。
Answer is... Debug it using :verbose map and then see if you need to disable it. 答案是...使用:verbose映射对其进行调试,然后查看是否需要禁用它。
I had the same issue - had debugger.py
and debugger.vim
in the ~./vim/plugin
directory. 我遇到了同样的问题
~./vim/plugin
目录中有debugger.py
和debugger.vim
。 I removed these unused plugins and my mappings returned to normal. 我删除了这些未使用的插件,并且我的映射恢复了正常。
Came to light after upgrading OS X to Mavericks. 将OS X升级到Mavericks后亮起。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.