diff --git a/README.md b/README.md index 1fb09ef..1f271f8 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,14 @@ visual mark in file "b.txt" of the same register name are different marks, and will be persistent (ie, they will be able to be used after coming back to a file after closing it). +Configure marksFile path +------------------------ +In case you'd want to store the marks file in an alternative location, then +configure your preference in your vimrc, for example: +``` +let g:visualMarks_marksFile = $XDG_CONFIG_HOME . '/vim/vis-mark' +``` + Making Your Own Mapping: ------------------------ To change the default mapping to something else, put this into your vimrc: diff --git a/plugin/visualMarks.vim b/plugin/visualMarks.vim index 6114abf..778dc42 100644 --- a/plugin/visualMarks.vim +++ b/plugin/visualMarks.vim @@ -87,7 +87,9 @@ endfun " Options: " the file where the big dictionnary will be stored. -let g:visualMarks_marksFile = $HOME . "/.vim-vis-mark" +if !exists('visualMarks_marksFile') + let g:visualMarks_marksFile = $HOME . "/.vim-vis-mark" +endif let g:visualMarks_exitVModeAfterMarking = 1 let g:filen = g:visualMarks_marksFile