Sublime Keymap 设置
Posted wanghaiyang1930
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Sublime Keymap 设置相关的知识,希望对你有一定的参考价值。
深深受 Emacs 组合键的影响,在编辑的时候使用组合键快速移动,而不比像 VIM 需要切换模式,但不得不吐槽 Emacs 的插件安装那个叫恶心,所以尝试了新生代产品 Sublime,但是还是离不开 Emacs 组合键的思想,所以将几个常用的组合键在 Sublime 中进行了重新绑定,真实愉快的不得了。
1 [ 2 { "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} }, 3 { "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} }, 4 { "keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false} }, 5 { "keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true} }, 6 { "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false} }, 7 { "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} }, 8 9 { "keys": ["alt+a"], "command": "select_all" }, 10 { "keys": ["alt+b"], "command": "move", "args": {"by": "words", "forward": false} }, 11 { "keys": ["alt+f"], "command": "move", "args": {"by": "word_ends", "forward": true} }, 12 { "keys": ["alt+p"], "command": "move", "args": {"by": "pages", "forward": false} }, 13 { "keys": ["alt+n"], "command": "move", "args": {"by": "pages", "forward": true} }, 14 15 16 17 { "keys": ["ctrl+alt+a"], "command": "select_all" }, 18 { "keys": ["ctrl+alt+e"], "command": "slurp_find_string" }, 19 20 { "keys": ["ctrl+alt+b"], "command": "build" }, 21 { "keys": ["ctrl+alt+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} }, 22 { "keys": ["ctrl+alt+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, 23 { "keys": ["ctrl+alt+n"], "command": "new_file" }, 24 25 { "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} }, 26 { "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} }, 27 28 { "keys": ["left"], "command": "move", "args": {"by": "characters", "forward": false} }, 29 { "keys": ["right"], "command": "move", "args": {"by": "characters", "forward": true} }, 30 { "keys": ["up"], "command": "move", "args": {"by": "lines", "forward": false} }, 31 { "keys": ["down"], "command": "move", "args": {"by": "lines", "forward": true} } 32 ]
再唠叨两句,大势所趋下, VIM 依然坚挺,不得不得益于 Linux 发行版本自带了 VIM,但是相比同时代老战友 Emacs 就没有那么幸运了,Emacs 的关注度持续下滑,看来更新停摆将是迟早的事...
以上是关于Sublime Keymap 设置的主要内容,如果未能解决你的问题,请参考以下文章