Problem: After Ubuntu10.04LucidLynx is installed, GVim cannot display the Chinese menu normally. Error message: Reference: Gtk-WARNING **: Invalidinputstring cause: Ubuntu10.04LucidLynx the default installation will set the Chinese region to zh_CN.utf8, while GVim can recognize the Chinese region to zh_CN.UTF-8. Therefore, GVim reports an error at startup and cannot properly Add the following problems:
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:
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.