Skip to content

navel3/vim-locstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-locstack

Manage location stack per window just like basic vim tag.

Usage

Command

SaveLocation
" Save current location.

NextLocation
" Jump to next location.

PrevLocation
" Jump to previous location.

ListLocations
" List locations in stack. You can jump where you want.

ClearLocations
" Clear location stack.

Function

locstack#save()
" Save current location.

locstack#next()
" Jump to next location.

locstack#prev()
" Jump to previous location.

locstack#list()
" List locations in stack. You can jump where you want.

locstack#clear()
" Clear location stack.

locstack#save_then(cmd)
" Save current location then execute `cmd`. This function is intended to use
" together with other plugins.
"    call locstack#save_then("call CocAction('jumpDefinition')")
"      or
"    call locstack#save_then({-> CocAction('jumpDefinition')})

Command & key map

Function Command Key map
locstack#save() SaveLocation <Plug>(locstack-save)
locstack#next() NextLocation <Plug>(locstack-next)
locstack#prev() PrevLocation <Plug>(locstack-prev)
locstack#list() ListLocations <Plug>(locstack-list)
locstack#clear() ClearLocations <Plug>(locstack-clear)

About

vim plugin to manage location stack per window.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published