vim-bookmarks
vim-bookmarks copied to clipboard
Can bookmark jump between different buffer?
I'm working a git project and I set many bookmarks in different files, can I jump between these bookmarks in different files?
Not sure, what exactly you want to achieve. You can list all bookmarks with ma
command and then open the ones you are interested in.
I have the same question - I'd like to open the bookmarks using ma
and m2
to a given one. Right now there doesn't seem to be a way to navigate from the bookmark list.
I'm afraid I still don't understand what behaviour or functionality is desired here. Could you describe it please with an example?
They probably means a shortcut key that allows user to jump to a specified bookmark, either according to the order they are in the bookmark list or by specifying they bookmark number, i.e. m2 jump to the 2nd bookmark etc..
Perhaps a use-case similar to harpoon which allows you to jump to different buffers.
Yepp, also very interested. Like, basic bookmarks allow to do smth like "mA" and go to it via "`A" regardless of the current buffer. Behavior is like that you have global marks, one command and you have the necessary file opened at a correct place.
Is it possible to add smth like that? I'd probably try to add that myself if pointed at how difficult the concept is and is it possible at all. Would be grateful for any hint
ive come up with a poor mans harpoon.
" Only create viminfo in git projects
if finddir('.git', '.;')
call system('touch ' . $PWD . '/.viminfo')
endif
let &viminfofile=findfile('.viminfo','.;')
With this, you can now create global marks with something like mQ
that persists. You can view your marks with :marks
and go to mark with `Q