Ubuntu16.04 VIM Configuration Auto-complete

Source: Internet
Author: User
Tags git clone

Ubuntu16.04 VIM Configuration Auto-complete
At the end of last month, ubuntu16.04 's news exploded in various Linux forums. I am looking forward to the release of the next long-term stable version for me, which has always been under Ubuntu. Very hard to wait until the release of the new version, just the days of leave at home, work is nothing. For me with the new disease, that still waiting for what, that is not hurriedly backup installation. has been using Vim to write C + +, of course, after updating the system without the various configuration of vim. The complete function of vim, although not the IDE's powerful, but installed on the youcompleteme after the completion of the function is also said that the past. Start the installation configuration process below, open the terminal, first enter: sudo apt-get install vim command for vim installation. (Vim installed via command does not support Python, so you cannot use Youcompleteme) git clone https://github.com/vim/vim.git//download vim after downloading, go to the Vim directory and compile and install:. /configure--prefix=/usr/--enable-multibyte--enable-pythoninterp=yes//Add support for Python make-j4//start compiling sudo make install/ /After installing VIM installation, it is possible to see if Python is supported via Vim--version. In the list that appears, locate the Python option, and the + sign indicates that support for the python,-number indicates no support. The backup [VIMRC] (http://download.csdn.net/detail/kang99827765/9515267) file is then copied to the user directory. Command: CP VIMRC ~/.VIMRC Below is the installation of plug-ins, management vim plug-in use is vundle. Input command: Git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle install Vundle from git, after installation is complete. Vundle settings See the settings in the My VIMRC file above. In the terminal with vim open a file, in the vim of the command mode input: Bundleinstall command, the plug-in update download. The done prompt appears in the left-hand status bar when the installation is complete. Once the download is complete, go to the ~/.vim/bundle/directory and you will see the plugin directory you downloaded. Before you perform a Youcompleteme installation, first determine the python, cmakeInstallation. Terminal input: sudo apt-get update//update source sudo apt-get install cmake//install cmakesudo apt-get install python python-dev//install Python input PYT Hon--version View Python version, Youcompleteme requires at least 2.6 + version. Youcompleteme can be semantic complement, but need to use the clang compiler, terminal input: sudo apt-get install clang ready to work, the following youcompleteme to compile and install work. The CD ~/.vim/bundle/youcompleteme/third_party/ycmd/cpp/into the CPP directory. Compile using the system's Libclang library and enter the following command: Cmake-g "Unix makefiles"-duse_system_libclang=on//Build Makefilemake-j4//start compiling [Ycm_extra_ Conf.py] (http://download.csdn.net/detail/kang99827765/9515683) youcomplteme configuration file, fixed the default configuration can not find the system library files and some of the completion of C + + problems. After downloading, copy the file to the user directory. CP ycm_extra_conf.py ~/.ycm_extra_conf.py start using Youcompleteme for fun!

Ubuntu16.04 VIM Configuration auto-complete

Related Article

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.