heavim/bundles-init/nerdtree.cfg.vim

13 lines
419 B
VimL

" NERDTree: ' e' = toggle side bar
let g:NERDTreeUpdateOnWrite = 1
nnoremap <Leader>e :NERDTreeToggle<CR>
" Open automatically if there are more than 150 columns and no file was specified
autocmd VimEnter * if argc() == 0 && &columns > 150 | NERDTree | endif
" Set the bookmarks file's path
let g:NERDTreeBookmarksFile = g:vim_vardata . '/NTBookmarks'
if filereadable( g:NERDTreeBookmarksFile )
ReadBookmarks
endif