Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable marks file path #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion plugin/visualMarks.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down