You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
634 B
VimL
23 lines
634 B
VimL
4 years ago
|
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle', 'tag': '6.9.8' }
|
||
|
|
||
4 years ago
|
" Close all open buffers on entering a window if the only
|
||
|
" buffer that's left is the NERDTree buffer
|
||
|
function! s:CloseIfOnlyNerdTreeLeft()
|
||
|
if exists("t:NERDTreeBufName")
|
||
|
if bufwinnr(t:NERDTreeBufName) != -1
|
||
|
if winnr("$") == 1
|
||
|
q
|
||
|
endif
|
||
|
endif
|
||
|
endif
|
||
|
endfunction
|
||
|
|
||
4 years ago
|
let g:NERDTreeDirArrowExpandable = '▸'
|
||
|
let g:NERDTreeDirArrowCollapsible = '▾'
|
||
|
|
||
4 years ago
|
let NERDTreeDirArrows=1
|
||
|
let NERDTreeIgnore = ['\.pyc$', '\.swp$']
|
||
4 years ago
|
|
||
4 years ago
|
map <leader>nt :NERDTreeToggle<CR>
|
||
|
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
|