Vim and ctags

Source: Internet
Author: User
Tags gtk
1. View function/variable definitions

3. Set the tags search path of vim.

Edit ~ /. Add a line to the vimrc File

# Add this line to let the ctags search tags in the file "/opt/GTK/tags"

Set tags + =/opt/GTK/tags

4. move the cursor to the variable or function you want to view in GTK source code. Press ctrl-] to view its definition. CTRL-T. Return to the original file. 2. view the header file.

1. Edit ~ /. Add a line to the vimrc file:

# Add this line to let Vim can search the header file in the directory "/opt/GTK/include" and "/opt/GTK/include/glib "...

Set path + =/opt/GTK/include/,/opt/GTK/include /*



2. move the cursor to the # include <XXX. h> header file name in vim and Press ESC and GF to view the header file:

: BP
Or
: BF

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.