Help us understand the problem. What is going on with this article?

Sublime Text2(Windows版)のカーソル移動をMac風に

More than 5 years have passed since last update.

Windows版のSublime Text2のキー操作をちょっとだけMac風にする。

  • Ctrl+a カーソルを行頭に移動
  • Ctrl+e カーソルを行末に移動
  • Ctrl+b カーソルを左に移動
  • Ctrl+f カーソルを右に移動
  • Ctrl+p カーソルを上に移動
  • Ctrl+n カーソルを下に移動
  • Ctrl+h カーソル左側の文字を削除
  • Ctrl+d カーソル右側の文字を削除
  • Ctrl+w カーソル左側の単語を削除

Preferences > Key Bindings - Userでキーバインドの定義ファイルを開いて、下のように設定する。

[
    {"keys": ["ctrl+a"], "command": "move_to", "args": {"to": "hardbol"}},
    {"keys": ["ctrl+e"], "command": "move_to", "args": {"to": "hardeol"}},
    {"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+h"], "command": "left_delete"},
    {"keys": ["ctrl+d"], "command": "right_delete"},
    {"keys": ["ctrl+w"], "command": "delete_word", "args": {"forward": false, "sub_words": true}}
]
hisaitami
PHPer, running through the dark
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした