sudo yum install mercurial
vim最新版下载地址
hg clone vim
sudo yum install ncurses-devel
gtk+-devel libgnomeui-devel libgnome-devel libbonoboui-devel cairo-devel libX11-devel libXpm-devel libXt-devel
xorg-x11-server-devel xorg-x11-proto-develcd ~/temp/vim/src
./configure --enable-gnome-check --with-x -enable-xim --enable-fontset --enable-multibyte --with-features=huge --prefix=/usr
sudo make install
如果发现有乱码,一般是无法显示标题栏,解决办法:
~/.gvimrc
在前面加入一下代码:
set encoding=UTF-8
set langmenu=zh_CN.UTF-8
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
阅读(2990) | 评论(0) | 转发(0) |