added nerdtree configuration

This commit is contained in:
tomit4 2021-11-05 11:10:00 -07:00
parent 03890a849a
commit f97855f8b4

View file

@ -36,6 +36,12 @@ nmap <C-k> <C-Up>
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif
"NerdTree opens on right
let g:NERDTreeWinPos = "right"
"Adjust NerdTree size
let g:NERDTreeWinSize=28
" 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