本文共 486 字,大约阅读时间需要 1 分钟。
编辑 ~/.vimrc文件,加上一行
#add this line to let the ctags search tags in the file "/opt/gtk/tags"
set tags+=/opt/gtk/tags4.在gtk源码中将光标移动到想要查看的变量或函数上,按下Ctrl - ] 即可以查看其定义.Ctrl - T返回原文件
1.编辑 ~/.vimrc 文件,加上一行:
#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/*
转载地址:http://lhfvb.baihongyu.com/