dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 2b6b3822e32b11f3f6bf65cd64d4801bdacb0173
parent 4f622e6d2b41a0c801a7d09971815d17c9b26517
Author: karioki <kar.9990@gmail.com>
Date:   Sat,  9 May 2020 14:31:25 +0000

Placing NERDTree bookmark file not on home dir (#624)


Diffstat:
M.config/nvim/init.vim | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -51,6 +51,11 @@ set clipboard+=unnamedplus " Nerd tree map <leader>n :NERDTreeToggle<CR> 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 <leader>d :call ToggleDeadKeys()<CR>