<p>尼奥维姆?有人吗?</p>
<h2>与neovim和ycm建立关系</h2>
<h2>安装</h2>
<p>例如,在arch上,<code>yaourt -S python-neovim</code></p>
<p>基本上,您需要python支持。</p>
<h2>设置neovim</h2>
<pre><code>mkdir -p ~/.config/nvim/bundle/Vundle.vim/
cp ~/.vimrc ./init.vim
git clone https://github.com/VundleVim/Vundle.vim.git
git clone
nvim ~/.config/nvim/init.vim # edit nvim init file (using nvim, **of course** :)
</code></pre>
<h2>使用vundle管理YCM:</h2>
<p>希望你仍然在你的体内<code>~/.config/nvim/init.vim</code>。。。添加这些行以添加<a href="https://github.com/VundleVim/Vundle.vim" rel="noreferrer">Vundle</a>和<a href="https://github.com/Valloric/YouCompleteMe" rel="noreferrer">You Complete Me (YCM)</a>插件:</p>
<pre><code>set nocompatible
filetype off
set rtp+=~/.config/nvim/bundle/Vundle.vim
call vundle#begin('~/.config/nvim/bundle')
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
call vundle#end()
filetype plugin indent on
</code></pre>
<p><strong>注意</strong><br/>
以上所有行都是<strong>必需的</strong>(除了<code>Plugin 'vundleVim/Vundle.vim'</code>,因为这只是告诉vundle管理自己进行更新)。</p>
<p>现在在nvim/vim中运行这些命令来(1)获取当前文件的源代码,(2)使用vundle安装所有插件。</p>
<pre><code>:so %
:PluginInstall
</code></pre>
<h2>最后一步:编译YCM</h2>
<p>我们需要YCM的最后一步。(通常,您不需要对插件执行此操作,因为它们将使用vimL或其他东西。但是,YCM需要更快的速度,所以我们需要做更多的事情。)</p>
<pre><code>cd ~/.config/nvim/bundle/YouCompleteMe/
python2 install.py
</code></pre>
<p>全部完成!<br/>
:)</p>
<h2>取而代之的是在vim中设置</h2>
<h2>喵</h2>
<p>如果你坚持,只需将vundle的所有东西放入<code>~/.vim/bundle/</code>中,然后使用</p>
<pre><code>set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin('~/.vim/bundle')
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe' " if on arch, I recommend installing vim-youcompleteme-git
call vundle#end()
filetype plugin indent on
</code></pre>
<p>在你的~/.vimrc里面。<strong>注意<code>set rtp+=</code>和<code>call vundle#begin</code>之间的差异。。。在vim和nvim中,它们指向不同的目录。</p>