私はOSXを使用しています。ビンテージ モードが有効になっていることは確かですが (ステータス バーに INSERT MODE が表示されます)、コマンド モードに入ることができません。それ、どうやったら出来るの?いくつかのチュートリアルで見たように、エスケープ キーは機能しません。ありがとう!
10759 次
2 に答える
10
ドキュメントから-
Vintage starts in insert mode by default. This can be changed by adding:
"vintage_start_in_command_mode": true
to your User Settings.
その後 -
if you'd like to bind "jj" to exit insert mode, you can add this key binding:
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
}
于 2013-02-13T20:20:58.043 に答える
2
Preferences -> Key Bindings - User
ビジュアルモードも終了するので、以下が便利です。ビジュアル モードでは、移動に j と k を使用する必要があるため、大文字の J と K に注意してください。
{ "keys": ["J", "K"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false },
{ "key": "setting.vintage_ctrl_keys" }
]
},
{ "keys": ["J", "K"], "command": "exit_visual_mode",
"context":
[
{ "key": "setting.command_mode"},
{ "key": "num_selections", "operand": 1},
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": false },
{ "key": "setting.vintage_ctrl_keys" }
]
},
于 2013-09-26T16:25:28.550 に答える