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

Add remap setting for jumping to next/previous hunk #87

Closed
wikimatze opened this issue May 24, 2016 · 3 comments
Closed

Add remap setting for jumping to next/previous hunk #87

wikimatze opened this issue May 24, 2016 · 3 comments
Milestone

Comments

@wikimatze
Copy link

I like to use C-n and C-p from https://github.com/junegunn/fzf.vim to jump to next/previous hunk. The documentation adds mapping for all other commands, except those ones. See line https://github.com/jreybert/vimagit/blob/master/doc/vimagit.txt#L230.

Maybe it's just missing in the documentation?

@wikimatze wikimatze changed the title Add setting remap Add remap setting for jumping to next/previous hunk May 24, 2016
@jreybert
Copy link
Owner

5 months for this issue... sorry.

Yes, it's just missing in the doc (updated). Variables are:
g:magit_jump_next_hunk
g:magit_jump_prev_hunk

@wikimatze
Copy link
Author

Thanks you so much.

let g:magit_jump_next_hunk = '<C-n>'
let g:magit_jump_prev_hunk = '<C-p>'

works as intended.

@jreybert
Copy link
Owner

👍

@jreybert jreybert modified the milestone: Release 1.7.0 Oct 13, 2016
jreybert added a commit that referenced this issue Oct 14, 2016
* 'master' of https://github.com/jreybert/vimagit:
  plugin/magit.vim: add reset mapping in diff context ref #97
  README.md
  plugin/magit.vim: enlarge or shrink hunks fix #97
  doc/vimagit.txt: add vimagit-g:magit_jump_{next,prev}_hunk variable links fix #87
  Add Gitter badge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants