Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5608

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

$
0
0

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/


Viewing all articles
Browse latest Browse all 5608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>