Compiling vim and man help documents in Ubuntu

Source: Internet
Author: User

Vim is a powerful editor. Of course we can also configure it with a powerful ide. There are a lot of such tutorials online, so I will not repeat them here.

We often need to check the document for unfamiliar commands and plug-ins. The English environment is indeed large.

I found a Chinese document and click here to download the file.

First, we should create a. Vim/folder. vimrc hidden file under the user's main directory, and create the. Vim/doc/. Vim/plugin folder in sequence.

[Plain]View plaincopyprint?
  1. Mkdir ~ /. Vim
  2. Mkdir ~ /. Vim/doc/"store help documentation"
  3. Mkdir ~ /. Vim/plugin/"plugin storage"
  4. Mkdir ~ /. Vim/syntax
  5. Touch. vimrc

Decompress the downloaded file and copy all files under DOC/~ /. Vim/doc/

[Plain]View plaincopyprint?
  1. Cd ~ /Download/vimcdoc-1.9.0/doc
  2. Cp *~ /. Vim/doc/

Note:
A. If Chinese characters cannot be displayed, add the following sentence to. vimrc in the main directory:
Set helplang = Cn
B. The text of the Help file is UTF-8 encoded. If you want to use Vim to view it directly, you need to set it in home/. vimrc:
Set encoding = UTF-8


Man help document Localization

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 read many English letters. You do not need to set the path! In this way, when you want to use Chinese man: CMAN command, you want to use English man: Man command.

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.