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?
- Mkdir ~ /. Vim
- Mkdir ~ /. Vim/doc/"store help documentation"
- Mkdir ~ /. Vim/plugin/"plugin storage"
- Mkdir ~ /. Vim/syntax
- Touch. vimrc
Decompress the downloaded file and copy all files under DOC/~ /. Vim/doc/
[Plain]View plaincopyprint?
- Cd ~ /Download/vimcdoc-1.9.0/doc
- 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.