Answers:
从特定于软件包的README(/usr/share/doc/vim-youcompleteme/README.Debian
)中:
vim-youcompleteme
-----------------
A code completion plugin for Vim. This package designed to work with
vim-addon-manager. To use this addon install vim-addon-manager package first
and use this command:
$ vam install youcompleteme
vim-addon-manager
由when推荐vim-youcompleteme
,因此很有可能已经安装。如果不:
sudo apt-get install vim-addon-manager
然后运行自述文件中给出的命令。vim-syntastic
从package index的结果中仅可用于14.10,但鉴于它显式依赖vim-addon-manager
,我想说也适用于它。
试试这样的事情:
将其放在.vimrc的顶部以使用Vundle。
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 'VundleVim/Vundle.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
运行以下命令进行安装:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
cd ~/.vim/bundle
git clone https://github.com/Valloric/YouCompleteMe.git
cd YouCompleteMe
git submodule update --init --recursive
./install.sh --clang-completer