Install Vim
Yum Install vim-enhanced
Install Git
RPM-UVH http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8. Noarch.rpmyum Install git
Install bundle Plugin
git clone https://github.com/gmarik/vundle.git/data/vim/bundle/vundle
Configure VIM
Vim/etc/vimrc
Add the following configuration at the end of the file
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""Set Nocompatible"Be improvedfiletype off"Required!set rtp+=/data/vim/bundle/vundle/call VUNDLE#RC ()"Let Vundle manage Vundle"required! Bundle ' Gmarik/vundle '""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""setting of Nerdtreebundle ' Scrooloose/nerdtree ' let Nerdtreewinpos=' left ' let Nerdtreewinsize=31Let nerdtreechdirmode=1 "F8 Open Nerdtreemap f8:nerdtreetoggle/data<cr>""F7 a new tab tag map f7:tabnew<cr>"F5 Previous tab tag map f5:tabp<cr>""F6 after a tab tag map f6:tabn<cr>""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""setting of Nerdcommenterbundle ' Scrooloose/nerdcommenter ' if has ("Gui_running")"sets the character set set Encoding=utf-8set Fileencodings=ucs-bom,utf-8,chinese,prc,taiwan,latin-1,gbk,ucs-bom,cp936set Fileencoding=utf-8let &termencoding=&encoding"fix menu garbled source $VIMRUNTIME/delmenu.vimsource $VIMRUNTIME/menu.vim"solve Consle output garbled language messages Zh_cn.utf-8endif"Background Color Slate"code highlighting syntax Enablesyntax on"unprepared set Nobackup"Show line number set nu!"show Bracets pairing set Showmatch"do not wrap set Nolinebreakset wrap"Historical Number Set history=1024 "tab Width set tabstop=4"tab Auto Indent width set shiftwidth=4 "Set auto indent set AI"convert tab to space set Expandtab"automatic loading of _VIMRC files without restarting gvimautocmd! bufwritepost _VIMRC source%
Install related plugins
Vim
: Bundleinstall
Has fun with centos!
[CentOS] Creating a VIM environment