Sublime Textでカーソル移動のみVim風・Emacs風にする設定。
コントロールキー押しながらキー押しでカーソル移動するようにする。
Preferences - Key Bindings - User に以下を追加。
Vim風
[
{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true } },
{ "keys": ["ctrl+h"], "command": "move", "args": {"by": "characters", "forward": false } },
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "lines", "forward": true } },
{ "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": false } }
]
Enacs風
[
{ "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true } },
{ "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false } },
{ "keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true } },
{ "keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false } }
]
参考
http://www.sirochro.com/note/sublime-custom-keybind-move/