From 2b6b3822e32b11f3f6bf65cd64d4801bdacb0173 Mon Sep 17 00:00:00 2001 From: karioki Date: Sat, 9 May 2020 14:31:25 +0000 Subject: [PATCH] Placing NERDTree bookmark file not on home dir (#624) --- .config/nvim/init.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 9342fa9..48635a4 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -51,6 +51,11 @@ set clipboard+=unnamedplus " Nerd tree map n :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif + if has('nvim') + let NERDTreeBookmarksFile = stdpath('data') . '/NERDTreeBookmarks' + else + let NERDTreeBookmarksFile = '~/.vim' . '/NERDTreeBookmarks' + endif " vimling: nm d :call ToggleDeadKeys()