From 2722a5cad051bab27d7e5c0709af10944274c8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Fri, 13 Mar 2015 10:50:58 +0100 Subject: [PATCH] NERDTree bookmarks in data directory --- bundles-init/nerdtree.cfg.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundles-init/nerdtree.cfg.vim b/bundles-init/nerdtree.cfg.vim index 326f4b5..6689d7c 100644 --- a/bundles-init/nerdtree.cfg.vim +++ b/bundles-init/nerdtree.cfg.vim @@ -5,3 +5,9 @@ nnoremap e :NERDTreeToggle " 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 +