下是centos 6.4里安装vim配置操作命令
[BEGIN] 2014/5/13 星期二 上午 10:08:54 [root@bogon ~]# rpm -qa | grep vim [root@bogon ~]# yum remove vim vim-enhanced vim-common vim-minimal [root@bogon ~]# wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 [root@bogon ~]# yum update wget [root@bogon ~]# wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-extra.tar.gz [root@bogon ~]# wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-lang.tar.gz [root@bogon ~]# ll [root@bogon ~]# tar jxvf vim-7.4.tar.bz2 [root@bogon ~]# tar zxvf vim-7.2-extra.tar.gz [root@bogon ~]# tar zxvf vim-7.2-lang.tar.gz [root@bogon ~]# ll [root@bogon ~]# mv vim72 vim74 [root@bogon ~]# ll [root@bogon ~]# yuum info ncureses-devl [root@bogon ~]# yum update ncurses-devlel [root@bogon ~]# rpqm -qa | ncurses-devel [root@bogon ~]# yum serarch ncurses-devel mncurses-devel(B.i686 : Development files for the ncurses library [root@bogon ~]# cd vim74/src [root@bogon ~]# pwd [root@bogon ~]# wget http://mirrors.ustc.edu.cn/epel/6Server/x86_64/epel-release [root@bogon ~]# rpm -ivh eperl-release-6-8.noarch.rpm [root@bogon ~]# yum clear [root@bogon ~]# yum install ncurses-devlel [root@bogon ~]# yum update gcc* [root@bogon ~]# clear [root@bogon ~]# cd vim74/src [root@bogon src]#yum install ncurses-devel [root@bogon ~]# rpm -ivh epel-release-6-8.noarch.rpm [root@bogon src]#./configure --enable-multibyte \--with-features=huge \--disable -selinux [root@bogon src]#make [root@bogon src]#make install [root@bogon src]#cd ~ [root@bogon ~]# rz --这个上传vim.zip,gvim的配置文件和插件包 [root@bogon ~]# ll [root@bogon ~]# yum install zip [root@bogon ~]# yum info unzip [root@bogon ~]# yum install unzip [root@bogon ~]# unzip vim_p.zip [root@bogon ~]# cd .vim
以下是centos 5.8里安装vim配置操作命令:
[END] 2014/5/13 星期二 上午 10:52:32 [root@bogon ~]# [root@bogon ~]# rpm -qa | grep vim [root@bogon ~]# yum remove vim vim-enhanced vim-common vim-minimal [root@bogon ~]# wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 [root@bogon ~]# wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-extra.tar.gz [root@bogon ~]# wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-lang.tar.gz [root@bogon ~]# wget http://mirrors.ustc.edu.cn/epel/5/i386/epel-release-5- [root@bogon ~]# rpm -ivh epel-release-5-4.noarch.rpm [root@bogon ~]# yum install ncurses-devlel [root@bogon ~]# yum update gcc* [root@bogon ~]# ll [root@bogon ~]# tar -jxvf vim-7.4.tar.bz2 [root@bogon ~]# tar -zxvf vim [root@bogon ~]# tar -zxvf vim-7.2-extra.tar.gz [root@bogon ~]# tar -zxvf vim-7.2-lang.tar.gz [root@bogon ~]# ll [root@bogon ~]# mv vim72 vim74 [root@bogon ~]# ll [root@bogon ~]# cd vim74/ [root@bogon vim74]# cd src [root@bogon src]# yum install ncurses-devel [root@bogon src]# ./configure --enable-multibyte \--with-features=huge \--disable -selinux [root@bogon src]# make [root@bogon src]# make install [root@bogon src]# yum install ctags [root@bogon src]# yum install scscope [root@bogon src]# yum install unzip [root@bogon src]# rz [root@bogon src]# ll [root@bogon src]# pwd [root@bogon src]# yum info unzip [root@bogon src]# yum install unzip [root@bogon src]# cd ~ [root@bogon ~]# rz [root@bogon ~]# unzip vim_p.zip [root@bogon ~]# ll [root@bogon ~]# ls -a [root@bogon ~]# cd .vim [root@bogon .vim]# cd plugin/ [root@bogon plugin]# ll [root@bogon plugin]# rz --上传vim_wubi.vim [root@bogon plugin]# rz --上传vim_wubi.txt [root@bogon plugin]# cd ~ [root@bogon ~]# ll [root@bogon ~]# cat .vimrc [root@bogon ~]# vim [root@bogon ~]# ll [root@bogon ~]# cat test.txt [root@bogon ~]# cat .bash_prefile [root@bogon ~]# ls -a .bash* [root@bogon ~]# cat .bash_profile [root@bogon ~]# [END] 2014/5/14 星期三 上午 7:50:26
本文转自孤舟夜航之家博客51CTO博客,原文链接http://blog.51cto.com/cysky/1411238如需转载请自行联系原作者