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
";
- mkdir ~/.vim
- mkdir ~/.vim/doc/"Storing help Documents"
- mkdir ~/.vim/plugin/"Store Plugin"
- mkdir ~/.vim/syntax
- Touch. VIMRC
After extracting the downloaded files, copy all the files under doc/to ~/.vim/doc/
[Plain]View Plaincopyprint
";
- cd ~/Download/vimcdoc-1.9.0/doc
- 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