Very useful vim Plugin

Source: Internet
Author: User
Ctags

C Program reading Auxiliary tool . It's a lot of trouble to have to jump between files when looking at C + + code, which is ctags to solve this problem. Ctags is a tool for Linux, but it is used to generate tags files for vim, VIM can be used without additional plugins.
$ctags -RIn terminal, generate tags file
ctrl + ]In vim, jump to the point where the cursor refers to the definition of the symbol, jump will have a stack record jump process, you can jump back
ctrl + tIn Vim, as opposed to the previous command, the bounce

Cscope

C Program reading Auxiliary tool . Cscope is often used in conjunction with ctags, a tool that knows where to invoke the current function, where it contains the current file, and thus jumps, which is its main function. But unlike Ctags, this tool does not provide a way to jump back. It can also be used to find the definition of a symbol, such as classes, functions, variables, and some non-core functions, please know for yourself.
cscope -RbqGenerate Cscope related data files, typically 3
note that Cscope and ctags are different, VIM does not directly support it, so the need for VIM plug-in cscope.vim , with Vundle Direct write Bundle ‘cscope.vim‘ , shortcut keys to see how you set up.

Very useful vim Plugin

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.