Recently discovered that sublime incredibly able to open the function of vim, coupled with such a dazzling (forcing) cool (lattice) appearance, decisive use.
I used vim when I used to use ZZ instead of ESC, in summary, need to perfect two points:
1. Turn on the VIM function
2. Configure shortcut keys
# # # Open Vim function
In fact, just press ESC directly ... But you can only use the simple mode, not the bottom line (command line) mode
There are versions that do not support direct ESC, so the configuration is still the way to go.
Enter Preferences->settings-user and add the following line
"ignored_packages":
[
]
The meaning of this sentence is to set the ignored package to NULL, which means that all packages are enabled.
Save now and press ESC, you can already use Vim's commands simply.
Configure command-line mode
Download the plugin here.
从 Preferences->Browse Packages 进入插件目录.解压
Modify Keys
修改 Vintage目录(注意,不是刚刚放进去的)下面的 Default.sublime-keymap在最后一个 ] 前面写一个 ","(没有引号),然后粘贴```//for vim { "keys": ["z","z"], "command": "exit_insert_mode", "context": [ { "key": "setting.command_mode", "operand": false }, { "key": "setting.is_widget", "operand": false } ]},{ "keys": ["z","z"], "command": "hide_auto_complete", "context": [ { "key": "auto_complete_visible", "operator": "equal", "operand": true } ]},{ "keys": ["z","z"], "command": "vi_cancel_current_action", "context": [ { "key": "setting.command_mode" }, { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": false }, { "key": "vi_has_input_state" } ]
}
"'
注: "keys": ["z","z"] 这样代表序列输入,即 z 然后再 z 如果想同时按下两个键,比如 shift+space 那么是 "keys": ["shift+space"]
So, just fine. When I ran, I gave an error, did not look carefully, and then there was no effect.
Wish Smooth ~ ~
Sublime Configure VIM mode and modify ESC shortcut keys