Vim Configuration (Vimplus)

Source: Internet
Author: User
Tags git clone

Vim configuration (Vimplus) vimplus

Vimplus is a super configuration installer for Vim

GitHub Address: Https://github.com/chxuan/vimplus.git, Welcome to star and Fork.

Contact Vim has been a few years now, but before using Vim is to find someone else to configure the vim, but others are configured to not be able to meet their own needs (you need to have strong C/s code hint completion function, header file/source file switching, static code analysis and other functions), So recently I have time, I summed up some of the vim plug-ins, and then made a key installation program for the same needs of the Vimer reference.

First, the operation

The diagram is the true of vim after I configured it

The following image is borrowed from Valloric/youcompleteme to demonstrate the powerful C + + complement feature

Second, installation configuration (Ubuntu, Centos)
  • git clone https://github.com/chxuan/vimplus.git
  • CD./vimplus
  • sudo./setup.sh

Running the setup.sh script will automatically install and configure Vim, the installation takes about 40 minutes, mainly to download the compilation Valloric/youcompleteme more time, please wait patiently until the installation is complete ^_^

Third, the main function shortcut keys
  • View the file directory (F3)
  • Display functions, global variables, macro definitions (F4)
  • Show static code Analysis results (F5)
  • . H. cpp file fast Switching (F2)
  • Go to declaration (F + U)
  • Go To definition (f + i)
  • Open the Include file (f + O)
  • Same window buffer Toggle (Ctrl + P/ctrl + N)
  • Cursor position Toggle (Ctrl + O/ctrl + I)
  • Blur to find files under the current directory and its subdirectories (Ctrl + f)
Iv. after the installation is complete

Run the setup.sh script once the installation is complete, the home directory will be present. ycm_extra_conf.py, this file is YCM implementation of C + + and other language grammar complement function of the configuration file, generally I will put one in the home directory, and then each project copy one. ycm_ extra_conf.py, change the value of the flags variable inside the. ycm_extra_conf.py file to implement the syntax completion function of the relevant include file.

Five, matters needing attention


1. If the network conditions are not good, the installation fails, basically valloric/youcompleteme installation fails, after the installation fails, you need to delete the Youcompleteme directory under the ~/.vim/bundle folder, and then re-execute setup.sh.
When reinstalling, the program will automatically install the plugin that failed to install.

Vim Configuration (Vimplus)

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.