zoukankan      html  css  js  c++  java
  • Sublime Keymap 设置

      深深受 Emacs 组合键的影响,在编辑的时候使用组合键快速移动,而不比像 VIM 需要切换模式,但不得不吐槽 Emacs 的插件安装那个叫恶心,所以尝试了新生代产品 Sublime,但是还是离不开 Emacs 组合键的思想,所以将几个常用的组合键在 Sublime 中进行了重新绑定,真实愉快的不得了。

      

      由于 Linux 发行版本自带了 VIM,但是相比同时代老战友 Emacs 就没有那么幸运了,Emacs 的关注度持续下滑,看来更新停摆将是迟早的事...

    [
    { "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} },
    { "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} },
    { "keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false} },
    { "keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true} },
    { "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false} },
    { "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} },

    // File start.
    { "keys": ["ctrl+,"], "command": "move_to", "args": {"to": "bof", "extend": false} },
    // File end.
    { "keys": ["ctrl+."], "command": "move_to", "args": {"to": "eof", "extend": false} },

    // Select lines.
    { "keys": ["ctrl+l"], "command": "expand_selection", "args": {"to": "line"} },
    // Delete line.
    { "keys": ["ctrl+k", "ctrl+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} },

    { "keys": ["ctrl+u"], "command": "soft_undo" },
    { "keys": ["ctrl+z"], "command": "undo" },

    { "keys": ["alt+a"], "command": "select_all" },
    { "keys": ["alt+b"], "command": "move", "args": {"by": "words", "forward": false} },
    { "keys": ["alt+f"], "command": "move", "args": {"by": "word_ends", "forward": true} },
    { "keys": ["alt+p"], "command": "move", "args": {"by": "pages", "forward": false} },
    { "keys": ["alt+n"], "command": "move", "args": {"by": "pages", "forward": true} },

    { "keys": ["ctrl+alt+a"], "command": "select_all" },
    { "keys": ["ctrl+alt+e"], "command": "slurp_find_string" },

    { "keys": ["ctrl+alt+b"], "command": "build" },
    { "keys": ["ctrl+alt+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },

    { "keys": ["ctrl+alt+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
    { "keys": ["ctrl+alt+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
    { "keys": ["ctrl+alt+n"], "command": "new_file" },


    { "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof", "extend": false} },
    { "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof", "extend": false} },


    { "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} },
    { "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} },

    { "keys": ["left"], "command": "move", "args": {"by": "characters", "forward": false} },
    { "keys": ["right"], "command": "move", "args": {"by": "characters", "forward": true} },
    { "keys": ["up"], "command": "move", "args": {"by": "lines", "forward": false} },
    { "keys": ["down"], "command": "move", "args": {"by": "lines", "forward": true} }
    ]

  • 相关阅读:
    8月8号
    8月10号
    8月5号
    8月7号
    8月4号
    8月3号。
    特殊符号 sort_wc_uniq命令 tee_tr_split命令
    管道符和作业 shell变量 环境变量
    shell 基础 history table键 通配符 输入输出重定向
    yum 源 地址的修改 源码包安装
  • 原文地址:https://www.cnblogs.com/wanghaiyang1930/p/6753122.html
Copyright © 2011-2022 走看看