Postgresql配置vim cscope

在linux下我们使用到vim的cscope模块去阅读代码会比较方便,这里简单记录下postgresql的cscope相关配置。

cd /home/pg13/postgresql-13beta3

添加需要的索引文件:
find /home/pg13/postgresql-13beta3 -name “.c" -o -name ".o” > cscope.files

建立索引文件,生产cscope.out
cscope -b

手动加载cscope库:
vim Makefile
:cs add /home/pg13/postgresql-13beta3/cscope.out

查看库:
:cs show

搜索:
:cs find g xxx

猜你喜欢

转载自blog.csdn.net/weixin_39540651/article/details/108548866