https://github.com/phux/vim-marker
Create marks, persistent per working directory
https://github.com/phux/vim-marker
marks vim vim-plugin
Last synced: 10 months ago
JSON representation
Create marks, persistent per working directory
- Host: GitHub
- URL: https://github.com/phux/vim-marker
- Owner: phux
- Created: 2019-09-04T21:54:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T09:48:27.000Z (almost 7 years ago)
- Last Synced: 2025-01-17T02:24:22.291Z (over 1 year ago)
- Topics: marks, vim, vim-plugin
- Language: Vim script
- Size: 43.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-marker

vim-marker provides a custom mark stack that is stored per working
directory.
**Features**
* toggle marks
* cycle through marks across buffers
* persistent
* populate all marks in a quickfix window
## Configuration
### g:MarkerPersistenceDir
vim-marker stores the sets of markers under the path configured in `g:MarkerPersistenceDir` per `cwd`.
Default: `$XDG_DATA_HOME/vim-marker`
Override it with a path of your choice:
```
let g:MarkerPersistenceDir = '/path/to/a/directory'
```
### Mappings
vim-marker comes with following default mappings:
```
" Mapping to add or remove a marker at the current cursor position.
" Also works in the quickfix window.
let g:MarkerToggleMarkMapping = ''
" Mapping for jumping to next mark.
let g:MarkerNextMarkMapping = ''
" Mapping for jumping to previous mark.
let g:MarkerPrevMarkMapping = ''
" Toggle quickfix window with current marks.
let g:MarkerQuickfixToggleMapping = ''
```
Override these in your `.vimrc` to your likings.
You can also disable the default mappings completely via:
```
let g:MarkerEnableMappings = 0
```
Reset all markers by running:
```
:call marker#ResetMarkers()
```