Use vim like using the IDE

Source: Internet
Author: User

http://download.csdn.net/download/litao0976/6325921

Recently configured with Vim, you can quickly build projects like Sourceinsight, find files, sign jumps, function lists, and auto-complete.

Moreover, the symbol update is automatic, and from now on we can get rid of the dilemma of manually cscope updating the symbol table after editing the file.

First look at the effect, using the YCM plug-in test compilation technology, you can accurately analyze the structure of the content, very fast speed.

Then look at the quick file lookup, and sourceinsight can be comparable to the speed, the use is very simple, press F5 or, LF (depends on the project).

Installation is very simple, download the http://download.csdn.net/download/litao0976/6325921 file, and then use

SH vim_install.bin

command to complete the installation. Note that the user's password is prompted during installation.

Now let's briefly describe how this vim is used:

1. How to build the project

Execute VI in the directory where you need to build the project, and then LP. The first construction project is slow, because to establish a symbolic relationship and so on, it will be very fast.

2. Find Files

After building the project, use F5 or LF can open the File lookup window. Using the arrow keys or c-p,c-n to select a file, enter to determine

3. View the list of functions

Use F8 to open the Function list box to see the functions of the current file, etc.

4. Browse the current file directory

Activating the file Browse window using F9

5. Find Symbols

You can use Ctag C-] and c-t to simply jump through the symbols. You can also use the Cscope method CS F S,cs f F,cs f t,cs f i et command. These commands are also bound to the corresponding shortcut keys, c-c S, c-c F, c-c T, and so on, and the commands are basically corresponding.

Other features you can view the ~/.VIMRC file to configure the understanding, not detailed here.

Finally, if you have previously configured Vim, all your configurations are saved in the. Vimrc_old and. Vim_old, and you can easily merge them into the current vim.

Enjoy.

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.