NERDTree bookmarks in data directory

This commit is contained in:
Emmanuel BENOîT 2015-03-13 10:50:58 +01:00
parent c764242b63
commit 2722a5cad0

View file

@ -5,3 +5,9 @@ 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