Sublime configuring VIM mode and modifying ESC shortcut keys

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.