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

Can bookmark jump between different buffer? #77

Open
xuzhezhaozhao opened this issue May 17, 2015 · 7 comments
Open

Can bookmark jump between different buffer? #77

xuzhezhaozhao opened this issue May 17, 2015 · 7 comments
Labels

Comments

@xuzhezhaozhao
Copy link

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

@MattesGroeger
Copy link
Owner

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.

@robconery
Copy link

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.

@MattesGroeger
Copy link
Owner

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

@kwokhou
Copy link

kwokhou commented Jan 9, 2016

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

@sparkcanon
Copy link

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

@MasterAler
Copy link

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

@sparkcanon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants