Sublime mode to open vim and change ESC

Source: Internet
Author: User

First of all, I'm using sublime text2.

Sublime to open Vim mode:

In preference-Setting-user, add

1 " ignored_packages "  23 ]

You can use some of the basic functions of vim.

To modify ESC:

ESC super is super inconvenient to press, so we can change the ESC.

If you change ESC to shift+space, in preference-A, browse Packages, find the vintage file at the bottom, and then find Default,sublime-keymap in it, add it at the end

1 ,2{"Keys": ["Shift+space"],"Command":"Exit_insert_mode",  3         "Context":  4         [                 5{"Key":"Setting.command_mode","operand":false },  6{"Key":"Setting.is_widget","operand":false }  7         ]  8     },  9   Ten{"Keys": ["Shift+space"],"Command":"Hide_auto_complete","Context":   One         [   A{"Key":"auto_complete_visible","operator":"Equal","operand":true }   -         ]   -     },   the    -{"Keys": ["Shift+space"],"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" }   +         ]   A}

Do not forget the beginning of the comma. This shift+space also has the function of ESC.

However I was the CAPS lock this changed to ESC, but sublime seemingly no way to change, so I directly to the computer's CAPS lock to get rid of ...

Windows Registry Editor Version5.00[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layout]"Scancode Map"=hex:xx,xx,xx,xx,xx,xx,xx,xx, Geneva,xx,xx,xx, on,xx, 3a,xx,xx,xx,xx,00

Create a new text document and then copy the above code and save as Xxx.reg. Then open that document and restart the computer to =.=.

Sublime mode to open vim and change ESC

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.