Ubuntu16.04 installation VIM8

Source: Internet
Author: User

Ubuntu16.04 installation VIM8

Compile and install VIM8 under Ubuntu16.04, configure Vim-plug plug-in Manager, and install plugins such as Youcompleteme.

Installation dependencies
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev     libgtk2.0-dev libatk1.0-dev libbonoboui2-dev     libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev     python3-dev ruby-dev liblua5.1 lua5.1-dev libperl-dev git

It should be noted that LUA should be liblua5.1-dev in Ubuntu16.04 and should be lua5.1-dev in other versions

Delete an existing VIM-related package
dpkg|grep vimsudo apt remove vim vim-common vim-runtime vim-tiny
Download the latest vim and compile the installation
git./configure --with-features=huge             --enable-multibyte             --enable-rubyinterp=yes             --enable-pythoninterp=yes             --with-python-config-dir=/usr/lib/python2.7/config             --enable-perlinterp=yes             --enable-luainterp=yes             --enable-gui=gtk2 --enable-cscope --prefix=/usrmake VIMRUNTIMEDIR=/usr/share/vim/vim80  -j5sudo make install
Configure VIM

Not configuring Vim will be more difficult to use, adding some plug-ins and personal custom customization can improve the efficiency of coding.

The vundle is slow to download the Vim plugin, and the asynchronous-based Vim-plug is very fast. Let's get Started:

"Specify a directory for plugins" -For Neovim: ~/.local/share/nvim/plugged"-Avoid using standard Vim directory names like ' plugin 'Call plug#begin (' ~/.vim/plugged ')"  MakeSure you use a single quotes"shorthand notation; Fetches Https://github.com/junegunn/vim-easy-alignPlug ' junegunn/vim-easy-align '"  anyValid git URL is allowedPlug ' Https://github.com/junegunn/vim-github-dashboard.git '"Multiple Plug commands can be written in a single line using | SeparatorsPlug ' sirver/ultisnips ' | Plug ' Honza/vim-snippets '" On-demandLoadingPlug ' Scrooloose/nerdtree ', {' on ':' Nerdtreetoggle '}Plug ' Tpope/vim-fireplace ', {' for ':' Clojure '}"Using a non-master branchPlug ' Rdnetto/ycm-generator ', {' branch ': ' Stable '}" UsingA tagged release; WildcardAllowed (requires Git 1.9.2 or above)Plug ' Fatih/vim-go ', {' tag ':'*'}"Plugin OptionsPlug ' Nsf/gocode ', {' tag ': ' v.20150303 ', ' RTP ': ' Vim '}" PluginOutside ~/.vim/plugged with post-update hookPlug ' Junegunn/fzf ', {' dir ':' ~/.fzf ',' Do ':'./install--all '}Plug ' Valloric/youcompleteme ', {' Do ':'./install.py '}"Unmanaged plugin (manually installed and updated)Plug ' ~/my-prototype-plugin '" InitializePlugin systemPagerPlug#end ()""Personal customization of some configuration, do not like, not accustomed to self-modificationSet NuSet tags=./.tags;. TagsSet CursorlineSet ShowmatchSet HlsearchSet IncsearchHiCursorline cterm=none ctermbg=black ctermfg=green guibg=none guifg=none

Turn off vim, again vim ~/.vimrc , typing :PlugInstall , start to download plugins: You can see the various plugins are simultaneously in the download, fast.

Youcompleteme because there are many submodule, it is easy to download the failure, so manual processing:

cd ~/.vim/plugged/YouCompleteMegit submodule update --init --recursivepython install.py
Reference
    • 69788343

    • http://www.skywind.me/blog/archives/2084

Ubuntu16.04 installation VIM8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.