updated NerdTree settings
This commit is contained in:
parent
2272275949
commit
e31e0db5dc
1 changed files with 4 additions and 2 deletions
|
|
@ -27,9 +27,11 @@ Plug 'HerringtonDarkholme/yats.vim' " TS Syntax
|
||||||
call plug#end()
|
call plug#end()
|
||||||
inoremap jk <ESC>
|
inoremap jk <ESC>
|
||||||
nmap <C-n> :NERDTreeToggle<CR>
|
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 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.
|
" 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
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue