http://jingyan.baidu.com/article/ac6a9a5e6ab5412b653eac94.html
http://blog.jobbole.com/58978/
http://it.taocms.org/06/8083.htm
http://blog.csdn.net/sky453589103/article/details/43575241
1,安装vim+python
apt-get install vim-nox
ps,当然你也可以,重新编译
2,安装cmake
apt-get install cmake
3,安装vundle
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim /etc/vim/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()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
" 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
注意,需要注释掉vimrc文件中的 runtime!debian.vim
即在此行前加"号
打开vim,命令行模式下输入 :PluginInstall
在 vimrc文件中添加如下内容:
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
然后重新打开vim即可
等待vundle
将YouCompleteMe安装完成
而后进行编译安装:
1
2
|
cd
~/.vim
/bundle/YouCompleteMe
.
/install
--clang-completer
|
c#
的补全,请加上
--omnisharp-completer。
5,错误处理
apt-get install python-dev
缺少c
.
/install
--clang-completer
改为:
.
/install
--omnisharp-completer
附:
mono安装
http://www.cnblogs.com/shanyou/archive/2013/04/19/3029886.html
apt-get install mono-complete
在 vimrc文件中添加如下内容:
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
然后重新打开vim即可