我在 OSX 上。我很确定 Vintage 模式已启用(我在状态栏中看到 INSERT MODE),但我无法进入 COMMAND 模式。我怎么做?正如我在一些教程中看到的那样,转义键不起作用。谢谢!
问问题
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 回答