119

NerdTree ディレクトリ パネルに現在のファイルを表示するショートカットはありますか。

TextMate のように「ドロワー内のファイルを表示」 - Ctrl+Command+R

4

5 に答える 5

213

in :h NERDTree:

:NERDTreeFind                                                  :NERDTreeFind
    Find the current file in the tree. If no tree exists for the current tab,
    or the file is not under the current root, then initialize a new tree where
    the root is the directory of the current file.

デフォルトでは何にもバインドされていないと思うので、自分でキーバインドを行う必要があります。

nmap ,n :NERDTreeFind<CR>

私の.vimrcに表示されるものです。

nmap ,m :NERDTreeToggle<CR>
于 2011-10-07T20:01:16.527 に答える