深深受 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} }
]