我正在尝试重新映射/绑定tig中的G,以匹配所有tig的keymaps中的vim的功能(移到最后一行)。
我读过tigrc手册页,这里是关于绑定到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.以下是目前有效的方法,但不是最优或更可取的:
bind main G move-last-line
bind help G move-last-line
bind grep G move-last-line下面是我所期望的:bind generic G move-last-line或bind main,help,grep G move-last-line
PS:我觉得这种类型的问题更适合于unix堆栈交换,但是there's no tag for tig there yet,所以也有类似的问题。
发布于 2019-06-03 16:01:42
正如您所提到的,bind generic G move-last-line就足够了。这对我很管用。
https://stackoverflow.com/questions/56407646
复制相似问题