From b7fce3ca16442b606f76883618794a1f66d07312 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 18 Mar 2023 20:47:44 +0000 Subject: added environment variable for notes directory --- vim/vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index b5f002d..a695038 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -213,7 +213,7 @@ let test#go#runner = 'gotest' autocmd FileType python let b:dispatch = 'mypy --ignore-missing-imports' " notational-fzf-vim -let g:nv_search_paths = ['~/Notes', '~/Notes/Archive'] +let g:nv_search_paths = [$NOTES_DIR, '$NOTES_DIR/Archive'] " jedo-vim let g:jedi#goto_command = "d" @@ -428,9 +428,9 @@ let g:fzf_colors = " ghetto note system " Go to index of notes -nnoremap ni :e ~/Documents/Notes/index.md:cd ~/Documents/Notes +nnoremap ni :e $NOTES_DIR/index.md:cd $NOTES_DIR " Depends on grepprg being set to rg -command! -nargs=1 Ngrep grep "" -g "*.md" ~/Documents/Notes +command! -nargs=1 Ngrep grep "" -g "*.md" $NOTES_DIR nnoremap nn :Ngrep " open quicklist vertical -- cgit v1.2.3