下是centos 6.4里安装vim配置操作命令
[BEGIN] 2014/5/13 星期二 上午 10:08:54
[[email protected] ~]# rpm -qa | grep vim
[[email protected] ~]# yum remove vim vim-enhanced vim-common vim-minimal
[[email protected] ~]# wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
[[email protected] ~]# yum update wget
[[email protected] ~]# wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-extra.tar.gz
[[email protected] ~]# wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-lang.tar.gz
[[email protected] ~]# ll
[[email protected] ~]# tar jxvf vim-7.4.tar.bz2
[[email protected] ~]# tar zxvf vim-7.2-extra.tar.gz
[[email protected] ~]# tar zxvf vim-7.2-lang.tar.gz
[[email protected] ~]# ll
[[email protected] ~]# mv vim72 vim74
[[email protected] ~]# ll
[[email protected] ~]# yuum info ncureses-devl
[[email protected] ~]# yum update ncurses-devlel
[[email protected] ~]# rpqm -qa | ncurses-devel
[[email protected] ~]# yum serarch ncurses-devel
mncurses-devel(B.i686 : Development files for the ncurses library
[[email protected] ~]# cd vim74/src
[[email protected] ~]# pwd
[[email protected] ~]# wget http://mirrors.ustc.edu.cn/epel/6Server/x86_64/epel-release
[[email protected] ~]# rpm -ivh eperl-release-6-8.noarch.rpm
[[email protected] ~]# yum clear
[[email protected] ~]# yum install ncurses-devlel
[[email protected] ~]# yum update gcc*
[[email protected] ~]# clear
[[email protected] ~]# cd vim74/src
[[email protected] src]#yum install ncurses-devel
[[email protected] ~]# rpm -ivh epel-release-6-8.noarch.rpm
[[email protected] src]#./configure --enable-multibyte \--with-features=huge \--disable -selinux
[[email protected] src]#make
[[email protected] src]#make install
[[email protected] src]#cd ~
[[email protected] ~]# rz --这个上传vim.zip,gvim的配置文件和插件包
[[email protected] ~]# ll
[[email protected] ~]# yum install zip
[[email protected] ~]# yum info unzip
[[email protected] ~]# yum install unzip
[[email protected] ~]# unzip vim_p.zip
[[email protected] ~]# cd .vim
以下是centos 5.8里安装vim配置操作命令:
[END] 2014/5/13 星期二 上午 10:52:32
[[email protected] ~]#
[[email protected] ~]# rpm -qa | grep vim
[[email protected] ~]# yum remove vim vim-enhanced vim-common vim-minimal
[[email protected] ~]# wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
[[email protected] ~]# wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-extra.tar.gz
[[email protected] ~]# wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-lang.tar.gz
[[email protected] ~]# wget http://mirrors.ustc.edu.cn/epel/5/i386/epel-release-5-
[[email protected] ~]# rpm -ivh epel-release-5-4.noarch.rpm
[[email protected] ~]# yum install ncurses-devlel
[[email protected] ~]# yum update gcc*
[[email protected] ~]# ll
[[email protected] ~]# tar -jxvf vim-7.4.tar.bz2
[[email protected] ~]# tar -zxvf vim
[[email protected] ~]# tar -zxvf vim-7.2-extra.tar.gz
[[email protected] ~]# tar -zxvf vim-7.2-lang.tar.gz
[[email protected] ~]# ll
[[email protected] ~]# mv vim72 vim74
[[email protected] ~]# ll
[[email protected] ~]# cd vim74/
[[email protected] vim74]# cd src
[[email protected] src]# yum install ncurses-devel
[[email protected] src]# ./configure --enable-multibyte \--with-features=huge \--disable -selinux
[[email protected] src]# make
[[email protected] src]# make install
[[email protected] src]# yum install ctags
[[email protected] src]# yum install scscope
[[email protected] src]# yum install unzip
[[email protected] src]# rz
[[email protected] src]# ll
[[email protected] src]# pwd
[[email protected] src]# yum info unzip
[[email protected] src]# yum install unzip
[[email protected] src]# cd ~
[[email protected] ~]# rz
[[email protected] ~]# unzip vim_p.zip
[[email protected] ~]# ll
[[email protected] ~]# ls -a
[[email protected] ~]# cd .vim
[[email protected] .vim]# cd plugin/
[[email protected] plugin]# ll
[[email protected] plugin]# rz --上传vim_wubi.vim
[[email protected] plugin]# rz --上传vim_wubi.txt
[[email protected] plugin]# cd ~
[[email protected] ~]# ll
[[email protected] ~]# cat .vimrc
[[email protected] ~]# vim
[[email protected] ~]# ll
[[email protected] ~]# cat test.txt
[[email protected] ~]# cat .bash_prefile
[[email protected] ~]# ls -a .bash*
[[email protected] ~]# cat .bash_profile
[[email protected] ~]#
[END] 2014/5/14 星期三 上午 7:50:26
在虚拟机里安装centos 6.4和centos 5.8里配置vim 7.4安装过程,布布扣,bubuko.com
时间: 2024-12-22 20:51:36