标签:
yum install vim-enhanced
rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install git
git clone https://github.com/gmarik/vundle.git /data/vim/bundle/vundle
vim /etc/vimrc
在文件尾加入如下配置
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set nocompatible " be iMproved filetype off " required! set rtp+=/data/vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! Bundle ‘gmarik/vundle‘ """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""setting of nerdtree Bundle ‘scrooloose/nerdtree‘ let NERDTreeWinPos=‘left‘ let NERDTreeWinSize=31 let NERDTreeChDirMode=1 "F8 打开nerdtree map f8 :NERDTreeToggle /data<CR> ""F7 新开一个tab标签 map f7 :tabnew<CR> "F5 前一个tab标签 map f5 :tabp<CR> ""F6 后一个tab标签 map f6 :tabn<CR> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""setting of nerdcommenter Bundle ‘scrooloose/nerdcommenter‘ if has("gui_running") "设置字符集 set encoding=utf-8 set fileencodings=ucs-bom,utf-8,chinese,prc,taiwan,latin-1,gbk,ucs-bom,cp936 set fileencoding=utf-8 let &termencoding=&encoding " 解决菜单乱码 source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim " 解决consle输出乱码 language messages zh_CN.utf-8 endif "背景颜色 color slate "代码高亮 syntax enable syntax on "不备份 set nobackup "显示行号 set nu! "显示 bracets 配对 set showmatch "不自动换行 set nolinebreak set wrap "历史数 set history=1024 "tab宽度 set tabstop=4 "tab自动缩进宽度 set shiftwidth=4 "设置自动缩进 set ai "将tab转换为空格 set expandtab "自动加载 _vimrc文件,无需重启GVim autocmd! bufwritepost _vimrc source %
安装相关插件
vim
:BundleInstall
Have fun with CentOS!
标签:
原文地址:http://www.cnblogs.com/davidhhuan/p/4192868.html