I'm trying to remap/bind G
in tig to match vim's functionality (move to last line) in all of tig's keymaps.
I read the tigrc manpage, here's all that's mentioned about binding to keymaps
Keymaps
Valid keymaps are: main, diff, log, help, pager, status, stage,
tree, blob, blame, refs, stash, grep and generic. Use generic to
set key mapping in all keymaps. Use search to define keys for
navigating search results during search.
here's what currently works, but not optimal or preferable:
bind main G move-last-line
bind help G move-last-line
bind grep G move-last-line
here's what I expected would work: bind generic G move-last-line
or bind main,help,grep G move-last-line
PS: I feel questions of this type are more appropriate for unix stack exchange, but there's no tag for tig there yet , and there are similar questions to it on SO.
As you mentioned, bind generic G move-last-line
is enough. It works for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.