简体   繁体   English

如何跳转到vim nerdtree插件中的下一个打开目录

[英]how to jump to the next open directory in vim nerdtree plugin

For example, my file tree looks like this: 例如,我的文件树如下所示:

+/root/  
    -/close/  
    +/open/  
        aa.html  
        bb.xml  

If the cursor is in root line, how to jump to open directory as quickly as possible? 如果光标在根行中,如何尽快跳转到open目录?

Each time I need to use the 'j','k' key, it's not convenient enough! 每次我需要使用'j','k'键时,它都不够方便!

The NERDTree buffer is also a regular buffer, so you can use eg the search command: /open<Enter> to navigate to a particular sub-directory, or in your case /op<Enter> . NERDTree缓冲区也是常规缓冲区,因此您可以使用例如搜索命令: /open<Enter>导航到特定的子目录,或者在您的情况下/op<Enter>

Or if you're on the first line, 3j to move down by 3 lines. 或者,如果你在第一行, 3j向下移动3行。

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

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