3
我在OSX上。我很確定復古模式已啓用(我在狀態欄中看到插入模式),但我無法進入COMMAND模式。我怎麼做?正如我在一些教程中看到的那樣,退出鍵不起作用。謝謝!如何在崇高文本中輸入復古命令模式
我在OSX上。我很確定復古模式已啓用(我在狀態欄中看到插入模式),但我無法進入COMMAND模式。我怎麼做?正如我在一些教程中看到的那樣,退出鍵不起作用。謝謝!如何在崇高文本中輸入復古命令模式
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 }
]
}
我發現下面是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" }
]
},