vim: update nerdtree conf
This commit is contained in:
parent
870d7840d2
commit
5b2ff60922
10
.vimrc
10
.vimrc
@ -450,7 +450,8 @@ let OmniCpp_LocalSearchDecl=1
|
|||||||
let OmniCpp_MayCompleteDot = 1 " autocomplete after .
|
let OmniCpp_MayCompleteDot = 1 " autocomplete after .
|
||||||
let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
|
let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
|
||||||
let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
|
let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
|
||||||
set path+=..,/usr/local/include,/usr/include
|
set path+=..
|
||||||
|
"**,/usr/local/include,/usr/include
|
||||||
|
|
||||||
"""""""""""""
|
"""""""""""""
|
||||||
" Latex "
|
" Latex "
|
||||||
@ -477,7 +478,10 @@ cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
|||||||
" NerdTree
|
" NerdTree
|
||||||
"""""""""""
|
"""""""""""
|
||||||
augroup NerdGroup
|
augroup NerdGroup
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | 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
|
||||||
|
" 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
|
||||||
map <F9> :NERDTreeToggle<CR>
|
map <F9> :NERDTreeToggle<CR>
|
||||||
let NERDTreeIgnore= ['\.o$', '\.d$']
|
let NERDTreeIgnore= ['\.o$', '\.d$']
|
||||||
augroup END
|
augroup END
|
||||||
@ -621,7 +625,7 @@ let g:UltiSnipsJumpForwardTrigger = '<tab>'
|
|||||||
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
|
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
|
||||||
|
|
||||||
" Filesystem exploration
|
" Filesystem exploration
|
||||||
Plugin 'scrooloose/nerdtree'
|
Plugin 'preservim/nerdtree'
|
||||||
|
|
||||||
" Python completion
|
" Python completion
|
||||||
"Plugin 'klen/python-mode'
|
"Plugin 'klen/python-mode'
|
||||||
|
Loading…
Reference in New Issue
Block a user