Problem:
After Ubuntu 10.04 lucid lynx is installed, gvim cannot display the Chinese menu normally.
Error message:
Reference:GTK-warning **: Invalid input string
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 1:
Code: CD/usr/share/Vim/vim72/lang
Sudo ln-s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.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.
From: http://forum.ubuntu.org.cn/viewtopic.php? F = 68 & amp; T = 268875
Solution 2:
Set langmenu = zh_CN.UTF-8
Source $ vimruntime/delmenu. Vim
Source $ vimruntime/menu. Vim
Language messages zh_CN.utf-8
Copy to the/etc/Vim/vimrc file in the folder.