【vim8】
1、卸载旧版 vim 。
1.1、查看
walker@ubuntu:~$dpkg-l|grepvim iivim-common2:7.4.1689-3ubuntu1.2amd64ViIMproved-Commonfiles iivim-tiny2:7.4.1689-3ubuntu1.2amd64ViIMproved-enhancedvieditor-compactversion
1.2、卸载
sudoaptremove--purgevim-commonvim-tiny
2、安装依赖项。
sudoaptinstallgccmakelibncurses5-devgitpython-devpython3-dev
3、下载 vim 源码。
gitclone--depth=1https://github.com/vim/vim.git~/vim8git
4、编译安装。
cd~/vim8git/ ./configure--with-features=huge\ --enable-multibyte\ --enable-cscope\ --enable-pythoninterp=yes\ --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu\ --enable-python3interp=yes\ --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu make sudomakeinstall
walker@ubuntu:~/vim8git$vim--version|greppython +cryptv+linebreak+python/dyn+vreplace +cscope+lispindent+python3/dyn+wildignore
1、安装依赖项。
sudoaptinstallbuild-essentialcmakeclang
2、下载。
gitclone--recursivehttps://github.com/Valloric/YouCompleteMe.git~/.vim/bundle/YouCompleteMe
如果出现异常,进入 ~/.vim/bundle/YouCompleteMe目录,重复下面的命令直到下载完整。(不用vundle 自己下载 ycm 的原因也是因为这个包大而杂,容易出现异常。)
gitsubmoduleupdate--init--recursive
4、编译。
cd~/.vim/bundle/YouCompleteMe ./install.py--clang-completer--system-libclang
【vundle】
1、下载。
gitclonehttps://github.com/VundleVim/Vundle.vim.git~/.vim/bundle/Vundle.vim
setnocompatible"beiMproved,required filetypeoff"required setrtp+=~/.vim/bundle/Vundle.vim callvundle#begin() Plugin'VundleVim/Vundle.vim' Plugin'Valloric/YouCompleteMe' callvundle#end()"required filetypepluginindenton"required letg:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
*** walker ***
原文链接:https://www.f2er.com/ubuntu/352607.html