Go to definition using g
Talk0
1,599pages on
this wiki
this wiki
Duplicate tip
This tip is very similar to the following:
These tips need to be merged – see the merge guidelines.
Tip 462 Printable Monobook Previous Next
created 2003 · complexity basic · author Nitya · version 6.0
Place the cursor on any variable in your program.
gdwill take you to the local declaration.gDwill take you to the global declaration.g*search for the word under the cursor (like*, butg*on 'rain' will find words like 'rainbow').g#same as g* but in backward direction.gggoes to the first line in the buffer (or provide a count before the command for a specific line).Ggoes to the last line (or provide a count before the command for a specific line).
See also
Edit
gfwill go to the file under the cursorg]and other commands will jump to a tag definition (a tag can be a function or variable name, or more).