vim-bookmarks icon indicating copy to clipboard operation
vim-bookmarks copied to clipboard

Can bookmark jump between different buffer?

Open xuzhezhaozhao opened this issue 9 years ago • 7 comments

I'm working a git project and I set many bookmarks in different files, can I jump between these bookmarks in different files?

xuzhezhaozhao avatar May 17 '15 11:05 xuzhezhaozhao

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.

MattesGroeger avatar May 17 '15 18:05 MattesGroeger

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.

robconery avatar Jun 08 '15 05:06 robconery

I'm afraid I still don't understand what behaviour or functionality is desired here. Could you describe it please with an example?

MattesGroeger avatar Oct 12 '15 17:10 MattesGroeger

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..

kwokhou avatar Jan 09 '16 01:01 kwokhou

Perhaps a use-case similar to harpoon which allows you to jump to different buffers.

sparkcanon avatar Nov 07 '21 00:11 sparkcanon

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

MasterAler avatar May 04 '22 15:05 MasterAler

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

sparkcanon avatar Aug 31 '22 18:08 sparkcanon