开发者

How to automatically close NERDTree after a file has been opened?

开发者 https://www.devze.com 2023-03-31 20:40 出处:网络
The file is opened with the \'return\' key on the current tab or with the \'t\' key to open it on a ne开发者_JAVA百科w VIM tab.Add the following to your .vimrc

The file is opened with the 'return' key on the current tab or with the 't' key to open it on a ne开发者_JAVA百科w VIM tab.


Add the following to your .vimrc

let NERDTreeQuitOnOpen=1


Try :help nerdtreequitonopen.


Add this line to your .vimrc:

let NERDTreeQuitOnOpen='Value'

and Values :

 Value  | NERDTree Window Behavior
 -------+-------------------------------------------------------
 0      | No change
 1      | Closes after opening a file
 2      | Closes the bookmark table after opening a bookmark
 3(1+2) | Same as both 1 and 2


Try something like let NERDTreeCustomOpenArgs = {'file':{'keepopen': 0}}

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号