как быстро найти активный файл в NERDTree - PullRequest
4 голосов
/ 01 января 2012

скажем, я редактирую файл с именем application_controller.rb, который в ~/work/foo/app/controller/.

Теперь я хочу открыть окно NERDTree и надеюсь, что оно автоматически развернет папку ~/work/foo/app/controller/ и поместит курсор на файл application_controller.rb.Как?

1 Ответ

8 голосов
/ 01 января 2012

: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.
...