Vimim is the best input method in VI

Source: Internet
Author: User
Tags wubi

Vimim is the best input method in VI

Because in VI, normal and insert mode exists, if in the insert mode is entered in Chinese, after the ESC key to return to normal mode, the system's Chinese input method will conflict with the VI command, you must exit the Chinese input method in order to operate VI. Vimim is to solve this problem.
Another advantage of Vimim is platform-agnostic, you can use the same input method in Windows, Linux, MacOS, and the input method of the operating system is not related.

Share the attachment:

Link: https://pan.baidu.com/s/1eR2uQDc Password: 6KTP


1. Installing Vimim
It is very simple to download the attachment and copy the files in the plugin directory to the. Vim/plugin directory in your home directory.
The default is Pinyin input method and Baidu cloud Pinyin Input method (must be network available).

2. How to use
Open VI, enter insert mode, press Ctrl-_, the Vimim input method is enabled. The default is Pinyin input method, press ctrl-^ can replace input method.
you can enter in VI: Echo g:vimim_toggle, view the currently available input methods, and select different input methods by pressing ctrl-^ rotation.

3. Selectable local Thesaurus
in the Ck_bak directory, there are several different thesaurus options, which are text files at the end of the txt. For example, you can copy the Wubi thesaurus to the plugin directory, and you can choose Wubi Thesaurus by ctrl-^.
The VIMIM.GBK.BSDDB is a very special thesaurus, if your system supports BSDDB, you can copy this file to the plugin directory (remember to delete the other Pinyin thesaurus), you can use this large thesaurus. As if the Wubi Thesaurus is in conflict with the VIMIM.GBK.BSDDB thesaurus, you cannot select the Wubi thesaurus when using the VIMIM.GBK.BSDDB thesaurus.

4. Cloud Input Method
originally Vimim support Baidu, Google, Sogou, QQ four cloud input method, but because Google in the country can not access, Sogou and QQ changed the way the cloud input, now can use the cloud IME only Baidu.
when switching the input method through ctrl-^, because Google, Sogou, QQ can not be used, will appear VI card dead situation. For this reason, I changed the 131 rows in the Vimim.vim file, assigning the initial content in the s:rc["G:vimim_cloud" to null, which can be set in the. vimrc file as follows:
Let g:vimim_cloud= ' Baidu '
so you can switch through the ctrl-_, using Baidu's cloud Pinyin input method,
If you do not want to use the Baidu cloud Input method, you can delete the previous line in the. vimrc.

5. Screenshot
accreditations, look.

Vimim is the best input method in VI

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.