【问题标题】:Sublime-text 3 Vintage Mode mappingSublime-text 3 复古模式映射
【发布时间】:2016-10-05 13:54:00
【问题描述】:

请帮助在 VintageMode 中进行映射。 我想避免 Eschttp://vim.wikia.com/wiki/Avoid_the_escape_key

如何映射这些键?

  • Alt+o 在您当前正在编辑的行下方打开一个新行,
  • Alt+A 追加到当前行的末尾,
  • Alt+p 粘贴到当前插入位置。
  • Alt+k 向上移动

【问题讨论】:

    标签: vim sublimetext3


    【解决方案1】:

    您可以打开Default keymap 并将您想要的条目复制到您的用户键盘映射中。然后在键绑定前面加上alt+,如果它是大写的alt+shift+ 和小写的字符。将上下文从 "key": "setting.command_mode" 更改为 "key": "setting.command_mode", "operator": "equal", "operand": false。为您想要的每个键绑定执行此操作,它应该可以工作。

    例子:

    { "keys": ["alt+shift+a"], "command": "enter_insert_mode", "args":
        {"insert_command": "move_to", "insert_args": {"to": "hardeol"} },
        "context": [{"key": "setting.command_mode", "operator": "equal", "operand": false}]
    },
    

    【讨论】:

      【解决方案2】:

      要创建自定义键绑定,请使用Menu > Preferences > Key Bindings,有关键绑定的详细信息,请参阅Sublime Text Unofficial Documentation

      这里有一些documentation on customising Vintage

      要查看 Vintage 默认键绑定,请查看 Vintage 包 bundled with Sublime Text。虽然已经过时,但 sublimehq 有一个 Vintage package on github

      也可以试试Vintageous

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-08-07
        • 2021-09-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多