added nerdtree configuration
This commit is contained in:
parent
03890a849a
commit
f97855f8b4
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue