Solve the problem of frequent switching of input methods in the "Edit/command" mode of VIM editing Chinese documents

Source: Internet
Author: User

Anyone who has used VIM to edit Chinese documents knows that the command line mode is required after each editing.

If you forget to press SHIFT to switch the Chinese/English input, you will find that the commands after pressing ESC are all Chinese input methods.

If you do not press shift, you cannot use the shortcut key.


This is really irritating. Is there a solution?


Of course, we can use the VIMIM plug-in to solve this problem.


First, you need to download this plug-in.

Download the latest vimim. vim plug-in.

Http://www.vim.org/scripts/script.php? Script_id = 1, 2506


Then move the file ~ The/. vim/plugin directory can be used.


The basic switch key is ctrl + 6.

In this way, you can only press ctrl + 6 to enter Chinese characters.


If you want to enter Chinese characters for a long time, you can press shift ctrl-three keys after entering the editing mode.

At the same time, after using this plug-in, you don't have to worry about playing Chinese Input in command line mode!

However, if you do not download the offline dictionary, you can only use cloud input for Chinese input when there is a network.

So we can download an offline dictionary.

Download from here

Https://code.google.com/p/vimim-data/downloads/list

After the download, you can move it to the directory you just downloaded.

I personally think that fcitx is easy to use, while sogou does not seem to be able to write three words, which is uncomfortable.

Cloud input is too slow. I don't think it will be very slow. Who knows that the data transmission speed is not as fast as the typing speed?

In fact, you can also download the dictionary from here. This dictionary is rich, so the typing experience should be good.

Https://code.google.com/p/vimim/wiki/VimimDirectorydata


As ctrl + 6 +-this mode can basically meet my needs, other functions are not intended to be explored for the moment.

You can learn from the instructions

The address is here


Here is the official instructions

Http://vimim.googlecode.com/svn/vimim/vimim.html#id9

However, many people say that this instruction document is very bad.

I did not take a closer look. If you are interested, you can take a look.




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.