The localization of vim and man help documents under Ubuntu

Source: Internet
Author: User

Vim is a super powerful editor, and of course we can also configure it with a super-strong IDE. There are so many such tutorials online that I don't have to repeat them.

We are in the use of unfamiliar commands, unfamiliar with the use of plug-ins often need to view the document, the whole English environment is really looking at the big head. To this end, specifically

Find a Chinese document, click here to download the file.

First, we should build the. vim/directory in the user's home directory. VIMRC hidden files, and then build the. vim/doc/. Vim/plugin Directory

[Plain]View Plaincopyprint

";

    1. mkdir ~/.vim
    2. mkdir ~/.vim/doc/"Storing help Documents"
    3. mkdir ~/.vim/plugin/"Store Plugin"
    4. mkdir ~/.vim/syntax
    5. Touch. VIMRC

After extracting the downloaded files, copy all the files under doc/to ~/.vim/doc/

[Plain]View Plaincopyprint

";

    1. cd ~/Download/vimcdoc-1.9.0/doc
    2. CP * ~/.vim/doc/

Attention:
A. If you cannot display Chinese, add the following sentence to the . VIMRC in the home folder :
Set HELPLANG=CN
B. The text of the Help file is UTF-8 encoded, assuming that you want to view it directly with VIM, you need to set it in HOME/.VIMRC :
Set Encoding=utf-8


Man helps document the Chinese

1. Installation:
sudo apt-get install Manpages-zh

2. Configuration:
Add the following line to the. bashrc file
Alias cman= ' Man-m/usr/share/man/zh_cn '
Because I still see more English.

Do not use the set path! In this way. When you want to use Chinese man: cman command wants to use the English man: the Mancommand.

The localization of vim and man help documents under Ubuntu

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.