2016-12-02 76 views

回答

0

NERDTree通过:echo将它的菜单(:help NERDTreeMenu)实现到状态行并查询密钥。如标题所示,您只能使用J/K进行导航,或者通过按(o)突出显示的快捷键(由菜单定义确定)直接选择条目。

NERDTree Menu. Use j/k/enter and the shortcuts indicated 
========================================================== 
(o)pen through shell 
> (a)dd a childnode 
(m)ove the current node 
(d)elete the current node 

的关键是通过这个代码获得:

:echo nr2char(getchar()) 

你可以试试这个自己;它应该返回你调用后按下的键。如果这不起作用,你的终端坏了(或者Vim里面有bug)。

相关问题