Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
4
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@hisaitami

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

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}}
]
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
4
Help us understand the problem. What are the problem?