📄 00000028.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: althea (痛并快乐着), 信区: Linux <BR>标 题: 如何找到一些结构的细节(ctags+vim的使用方法) <BR>发信站: BBS 水木清华站 (Mon Apr 3 17:47:48 2000) <BR> <BR>【 在 ghxiang (henry) 的大作中提到: 】 <BR>∶<I> 偶初涉linux下编程,要设置一些结构参数,(例如fpos_t),但 </I><BR>∶<I> 偶不知这些结构中包含谢什么成员变量?该如何找到该细节,请 </I><BR>∶<I> 指教! </I><BR>∶<I> 授人以鱼,不如授之以渔! </I><BR> ^^^^^^^^^^^^^^^^^^^^^^ <BR>//nod <BR>try this with vim: <BR>cd /usr/include <BR>ctags -R <BR>vi -t fpos_t <BR> <BR>then you'll see the definition of fpos_t <BR> <BR>and you can use CTRL-] in vim to find definitions of other "tags" <BR>you'll find: <BR>#ifndef __USE_FILE_OFFSET64 <BR>typedef _G_fpos_t fpos_t; <BR>#else <BR>typedef _G_fpos64_t fpos_t; <BR>#endif <BR> <BR>find the definition of _G_fpos_t by moving cursor to this word and <BR>pressing CTRL-] <BR> <BR>you can repeat this procedure till you finally reach this line: <BR>typedef long int __off_t; <BR> <BR> <BR>-- <BR>※ 来源:·BBS 水木清华站 smth.org·[FROM: 162.105.179.14] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -