【问题标题】:How to bind to multiple keymaps with one line?如何用一行绑定多个键盘映射?
【发布时间】:2019-06-01 14:36:51
【问题描述】:

我正在尝试在 中重新映射/绑定 G 以匹配所有 tig 键盘映射中的 vim 功能(移至最后一行)。

我阅读了 tigrc 手册页,这里是关于绑定到键盘映射的所有内容

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-linebind main,help,grep G move-last-line

PS:我觉得这种类型的问题更适合unix堆栈交换,但是there's no tag for tig there yet,SO上也有类似的问题。

【问题讨论】:

    标签: tig tig


    【解决方案1】:

    正如你所说,bind generic G move-last-line 就足够了。 它对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-14
      • 1970-01-01
      • 2015-03-09
      • 2016-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多