- 论坛徽章:
- 95
|
原帖由 nuclearweapon 于 2007-4-16 21:08 发表
从那句看出我不是放在p上了??
把光标放在 'p' 上那句是因为我把你的问题看错了,抱歉
下面是 Vim 7 文档中关于 'gd' 命令的描述:
gd Goto local Declaration. When the cursor is on a local
variable, this command will jump to its declaration.
First Vim searches for the start of the current
function, just like "[[". If it is not found the
search stops in line 1. If it is found, Vim goes back
until a blank line is found. From this position Vim
searches for the keyword under the cursor, like with
"*", but lines that look like a comment are ignored
(see 'comments' option).
上述引文的红色部分相信可以解释楼主的疑惑。例如下述代码就可以被正确的识别:
[/code
int p;
int main()
{
char p;
p='c';
}
[/code] |
|