Creating a ctrl+tab keybinding in PuTTY

前端 未结 2 1970
北荒
北荒 2021-02-04 04:21

I\'d like to be able to map the vim commands :tabnext and :tabprev to CTRL+TAB and CTRL+SHIFT+TAB respectively. Unfortunately

2条回答
  •  一向
    一向 (楼主)
    2021-02-04 04:47

    I believe that at this time, using Ctrl+Tab is not possible with PuTTY, because PuTTY does not allow you to configure specific translations for keys. Here is a decent article that shows how you would set this up if PuTTY did support this feature:

    http://www.staldal.nu/tech/2009/01/10/how-to-use-ctrl-tab-in-gnu-screen/

    If you use (or would consider using) a hotkey/macro program like Autohotkey, you could emulate this behavior yourself. For example, this Autohotkey config script would do exactly what you want:

    #IfWinActive PuTTY
    ^Tab::Send :tabnext
    ^+Tab::Send :tabprev
    #IfWinActive
    

    (Note that this example is just looking for any window title starting with PuTTY, so you'd have to adjust based on your title configuration.)

提交回复
热议问题