I'm on OSX. I am pretty sure Vintage mode is enabled (I see INSERT MODE in the status bar), but I can't enter COMMAND mode. How do I do that? The escape key doesn't work, as I've seen in some tutorials. Thanks!
我在OSX。我很确定Vintage mode已经启用(我在状态栏看到了INSERT mode),但是我不能输入命令模式。我该怎么做呢?escape键不起作用,正如我在一些教程中看到的。谢谢!
2 个解决方案
#1
10
From the documentation -
从文档-
Vintage starts in insert mode by default. This can be changed by adding:
"vintage_start_in_command_mode": true
to your User Settings.
and then -
然后,
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 }
]
}
#2
1
I find the following is handy in Preferences -> Key Bindings - User
since it also exits Visual mode. Note the capital J and K since while in visual mode you'll want to use j and k for moving around.
我发现以下是方便的首选项->键绑定-用户,因为它也退出视觉模式。注意大写的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" }
]
},
#1
10
From the documentation -
从文档-
Vintage starts in insert mode by default. This can be changed by adding:
"vintage_start_in_command_mode": true
to your User Settings.
and then -
然后,
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 }
]
}
#2
1
I find the following is handy in Preferences -> Key Bindings - User
since it also exits Visual mode. Note the capital J and K since while in visual mode you'll want to use j and k for moving around.
我发现以下是方便的首选项->键绑定-用户,因为它也退出视觉模式。注意大写的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" }
]
},