如何快速定位NERDTree中的活动文件

6

比如说,我正在编辑一个名为 application_controller.rb 的文件,它位于 ~/work/foo/app/controller/ 文件夹下。

现在我想要打开 NERDTree 窗口,并希望它自动展开文件夹 ~/work/foo/app/controller/,并将光标定位到文件 application_controller.rb。该怎么做呢?

1个回答

12

:NERDTreeFind 很可能是你要找的:

Find the current file in the tree.

If not tree exists and the current file is under vim's CWD, then init a
tree at the CWD and reveal the file. Otherwise init a tree in the current
file's directory.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接