updated NerdTree settings

This commit is contained in:
tomit4 2021-10-15 19:20:13 -07:00
parent 2272275949
commit e31e0db5dc

View file

@ -27,9 +27,11 @@ Plug 'HerringtonDarkholme/yats.vim' " TS Syntax
call plug#end()
inoremap jk <ESC>
nmap <C-n> :NERDTreeToggle<CR>
" open NERDTree automatically
" Start NERDTree. If a file is specified, move the cursor to its window.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * NERDTree
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | 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