我的简洁的VIM简单配置

Posted Edward Guan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了我的简洁的VIM简单配置相关的知识,希望对你有一定的参考价值。

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简单配置的主要内容,如果未能解决你的问题,请参考以下文章

从零开始配置vim(27)——代码片段

从零开始配置vim(27)——代码片段

编写代码片段的更简洁的方法

vim代码片段插件ultisnips的使用

用vim写MFC应该怎样配置

latex在vim中的代码片段