我从Ubuntu的软件中心下载了vim-youcompleteme。但我不知道该怎么做。当我重新启动vim并进行测试时,没有什么特别的事情发生。vim-syntastic也是一样的。有人能告诉我怎么让他们工作吗?我应该用我的~/.vimrc做点什么吗?提前感谢!
发布于 2014-10-26 22:05:04
来自特定于包的自述实体(/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 youcompletemevim-addon-manager是vim-youcompleteme推荐的,所以很有可能它已经安装好了。若否,则:
sudo apt-get install vim-addon-manager然后运行自述文件中给出的命令。从vim-syntastic的结果来看,包索引只适用于14.10,但考虑到它明显依赖于vim-addon-manager,我认为类似的东西也适用于它。
发布于 2018-07-19 13:48:09
在18.04,它是公正的;
sudo apt install vim-youcompleteme
vim-addon-manager install youcompletemeubuntu版本不支持Java,所以您可能需要最新的版本,这取决于您的语言选择,所以交替;
cd ~/.vim/bundle
git clone --depth=1 https://github.com/Valloric/YouCompleteMe.git
cd YouCompleteMe
git submodule update --init --recursive
./install.py --all发布于 2016-08-18 11:39:09
试着做这样的事情:
把这个放在你的.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-completerhttps://askubuntu.com/questions/541737
复制相似问题