2016-12-02 38 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)。

相關問題