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

Feature Request: vim key binding #351

Closed
hbprotoss opened this issue Dec 16, 2014 · 5 comments
Closed

Feature Request: vim key binding #351

hbprotoss opened this issue Dec 16, 2014 · 5 comments

Comments

@hbprotoss
Copy link

Something like 'g' to go to the beginning, 'G' to go to the end, and so on.

@vivien
Copy link
Contributor

vivien commented Dec 16, 2014

Why don't you set them in your tigrc?

bind generic g move-first-line
bind generic G move-last-line

See: https://github.com/jonas/tig/blob/master/doc/tigrc.5.adoc
And: https://github.com/jonas/tig/search?q=vim&type=Issues&utf8=%E2%9C%93
(especially for key sequences)

Duplicate of #273 and friends.

@edi9999
Copy link
Contributor

edi9999 commented Dec 17, 2014

Same thing for me, but bind generic G move-last-line doesn't work (the other does)

It seems to change the commit-title-graph property

@jonas
Copy link
Owner

jonas commented Dec 20, 2014

You need to also set the keybinding for the main keymap:

bind main G move-last-line

To override the default keybinding bound to G.
On Dec 17, 2014 10:21 AM, "Edgar Hipp" notifications@github.com wrote:

Same thing for me, but bind generic G move-last-line doesn't work (the
other does)

It seems to change the commit-title-graph property


Reply to this email directly or view it on GitHub
#351 (comment).

@edi9999
Copy link
Contributor

edi9999 commented Dec 21, 2014

thanks !

@jonas jonas closed this as completed in c1def71 Mar 11, 2015
@jonas
Copy link
Owner

jonas commented Mar 11, 2015

Feel free to suggest more binding that should go into contrib/vim.tigrc.

vivien added a commit to vivien/tig that referenced this issue Mar 11, 2015
vivien added a commit to vivien/tig that referenced this issue Mar 28, 2015
This commit is a first draft to add more Vim-ish bindings to vim.tigrc,
which are also good examples for multi-key bindings.

Refs jonas#67 jonas#273 jonas#351
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

4 participants