码迷,mamicode.com
首页 > 系统相关 > 详细

我的简洁的VIM简单配置

时间:2016-03-19 14:35:12      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:

1. 安装VIM

yum -y install vim

2. 安装Vundle插件管理器

 

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

3. 编辑个人VIMRC

# vi ~/.vimrc

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin ‘VundleVim/Vundle.vim‘

Plugin ‘Valloric/YouCompleteMe‘
Plugin ‘vim-airline/vim-airline‘
Plugin ‘vim-airline/vim-airline-themes‘ " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line

4. 安装插件

vim +PluginInstall +qall

5. 编译YouCompleteMe

安装Mono(.Net运行环境)

rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
yum -y install yum-utils yum-config-manager --add-repo http://download.mono-project.com/repo/centos/

 

yum -y install automake gcc gcc-c++ kernel-devel cmake python-devel
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer --omnisharp-completer --gocode-completer

 

一些资源:

All things Vim and Neovim!

https://github.com/mhinz/vim-galore

 

我的简洁的VIM简单配置

标签:

原文地址:http://www.cnblogs.com/edward2013/p/5295004.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!