Problem: After Ubuntu10.04 is installed, GVim cannot display the Chinese menu normally. Cause: Ubuntu10.04LucidLynx default installation will set the Chinese region to zh_CN.utf8, and GVim can recognize the Chinese region set as zh_CN.UTF-8. Therefore, GVim reports an error at startup and cannot load the Chinese menu normally. Solution: Code: cd/usr/share/vim/vim72/langsudoln-sm
Problem:
After Ubuntu 10.04 is installed, GVim cannot display the Chinese menu normally.
Cause:
Ubuntu 10.04 Lucid Lynx default installation will set the Chinese area to zh_CN.utf8, while GVim can recognize other Chinese areas set to zh_CN.UTF-8. Therefore, GVim reports an error at startup and cannot load the Chinese menu normally.
Solution:
Code:
Cd/usr/share/vim/vim72/lang
Sudo ln-s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.vim
Method 2:
Copy/ect/vim/gvimrc ~ /. Gvimrc
Add the following statement to solve the problem:
Set encoding = chinese
Set langmenu = zh_CN.GBK
Set imcmdline
Set guifont = "Serif 14"
Source $ VIMRUNTIME/delmenu. vim
Source $ VIMRUNTIME/menu. vim
This method enables GVim to recognize zh_CN.utf8 and uses the menu settings identical to the zh_CN.UTF-8. And does not affect the Chinese region settings of the system.
Okay. The problem is solved. It is a headache to say that character encoding is not uniform!
It is really a bit envious of English-language coder, learning programming has inherent advantages.
It seems that it will be better to work in the pure En System in the future !!!!
Download gvim 72
Bytes:
1./configure -- with-features = huge
2 make CFLAGS = "-O3-D_FORTIFY_SOURCE = 1"
// If no parameter is added after make, a strange error such as vim: caught deadly signal ABRT may occur. For details, refer to here.
3 sudo make install