fix: close nerdtree if nerdtree is the last open buffer
This commit is contained in:
parent
f7f70a83e2
commit
ee6a23d5a0
4
vimrc
4
vimrc
@ -7,6 +7,10 @@ autocmd Filetype make setlocal noexpandtab " use tabs in
|
|||||||
autocmd BufNewFile,BufRead rsnapshot.conf setlocal noexpandtab " use tabs in rsnapshot.conf files instead whitespaces
|
autocmd BufNewFile,BufRead rsnapshot.conf setlocal noexpandtab " use tabs in rsnapshot.conf files instead whitespaces
|
||||||
autocmd vimenter * NERDTree " AutoStart nerdtree
|
autocmd vimenter * NERDTree " AutoStart nerdtree
|
||||||
|
|
||||||
|
" Close NerdTree, if NerdTree is the last open buffer
|
||||||
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||||
|
|
||||||
|
|
||||||
" Key values
|
" Key values
|
||||||
" Can do almost everything that set can do, plus more.
|
" Can do almost everything that set can do, plus more.
|
||||||
" It can assign a value to
|
" It can assign a value to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user