remove nvim autoclose when NERDtree last buffer
This commit is contained in:
@@ -16,10 +16,6 @@ nnoremap <leader><space> <cmd>NERDTreeToggle<cr>
|
|||||||
" Start NERDTree when Vim is started without file arguments.
|
" Start NERDTree when Vim is started without file arguments.
|
||||||
autocmd StdinReadPre * let s:std_in=1
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
|
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
|
||||||
" Close the tab if NERDTree is the only window remaining in it.
|
|
||||||
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
|
||||||
" Exit Vim if NERDTree is the only window remaining in the only tab.
|
|
||||||
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
|
||||||
|
|
||||||
" Set to open Vista Sidebar
|
" Set to open Vista Sidebar
|
||||||
nnoremap ;<space> <cmd>Vista!!<cr>
|
nnoremap ;<space> <cmd>Vista!!<cr>
|
||||||
|
|||||||
Reference in New Issue
Block a user