diff --git a/dot_config/nvim/templates/general.vim b/dot_config/nvim/templates/general.vim index 47ffe8d..9fc357c 100644 --- a/dot_config/nvim/templates/general.vim +++ b/dot_config/nvim/templates/general.vim @@ -16,10 +16,6 @@ nnoremap NERDTreeToggle " Start NERDTree when Vim is started without file arguments. autocmd StdinReadPre * let s:std_in=1 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 nnoremap ; Vista!!