jaymiao

sublime 删除单词和持续选中

  •  
  •   jaymiao · Oct 26, 2015 · 3842 views
    This topic created in 3924 days ago, the information mentioned may be changed or developed.

    不喜欢用 sublime 的 vim 模式现在比较需要的是
    1. 删除单词就和 vim 中的 d+w 功能一样,直接在 key_mapping 中写个映射就能用了,这个答案请不要给出 cmd+d 选中单词再 delete
    2. 从光标持续向后选中 这个答案不要 cmd + shift + ->

    上面两个问题需要的答案是能够在 key_mapping 中映射的按键的 command,请各位 sublime 使用者作答,也别问为什么不用 vim 或者 vim 模式,每个人有自己选择。

    2 replies    2015-10-27 10:43:37 +08:00
    jfcherng
        1
    jfcherng  
       Oct 26, 2015
    1.
    { "keys": ["ctrl+alt+'"], "command": "delete_word", "args": { "forward": true } },

    2.

    { "keys": ["ctrl+alt+shift+l"], "command": "move", "args": { "by": "word_ends", "extend": true, "forward": true } },

    你想要的答案可在 sublime console 中使用 sublime.log_commands(True) ,按下按鍵便會印出命令。
    上面是我自己使用的映射。
    jaymiao
        2
    jaymiao  
    OP
       Oct 27, 2015
    @jfcherng 非常好用,感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:18 · PVG 06:18 · LAX 15:18 · JFK 18:18
    ♥ Do have faith in what you're doing.