使用当前选项卡上的“return”键打开文件,或使用“t”键在新的VIM选项卡上打开文件。
答案 0 :(得分:66)
将以下内容添加到.vimrc
let NERDTreeQuitOnOpen=1
答案 1 :(得分:16)
尝试:help nerdtreequitonopen
。
答案 2 :(得分:0)
尝试类似 let NERDTreeCustomOpenArgs = {'file':{'keepopen': 0}}
答案 3 :(得分:0)
将此行添加到您的 def factory(class_name):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
return type(class_name, (BaseClass,), {"__init__": __init__})
:
.vimrc
和价值观:
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