15
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sublime Textでvim風・Emacs風カーソル移動

Last updated at Posted at 2014-01-09

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/

15
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?