fedora gvim

install

1
2
3
yum install vim
yum remove vim-minimal
yum install gvim

some problems

1、Fedora 启动gvim提示Gtk-WARNING **: Invalid input string

在fedora的gnome下安装gvim:”yum install vim-X11”,因为gnome界面语言设置成了中文,因此会把中文区域设置为zh_CN.utf8,而GVim能识别的中文区域设置为zh_CN.UTF-8。因此GVim会在启动时报错,且无法正常加载中文菜单。

解决方案:
代码:

1
2
cd /usr/share/vim/vim73/lang
ln -s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.vim

此方法使得GVim可以识别zh_CN.utf8,并采用于zh_CN.UTF-8完全相同的菜单设置。并且不影响系统的中文区域设置。

2、’Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded

download from http://ctags.sourceforge.net/
After you unziped it, you have to set the Tlist_Ctags_Cmd variable in the .vimrc file to point to the ctags folder.

1
let Tlist_Ctags_Cmd = '/usr/bin/ctags'