Vim Tips Wiki
(Change to TipImported template + severe manual clean)
(Move categories to tip template)
Line 9: Line 9:
 
|version=5.7
 
|version=5.7
 
|rating=45/42
 
|rating=45/42
  +
|category1=
  +
|category2=
 
}}
 
}}
 
Place the cursor on any variable in your program.
 
Place the cursor on any variable in your program.

Revision as of 01:33, 25 April 2008

Tip 462 Printable Monobook Previous Next

created April 22, 2003 · complexity intermediate · author Nitya · version 5.7


Place the cursor on any variable in your program.

  • gd will take you to the local declaration.
  • gD will take you to the global declaration.
  • g* search for the word under the cursor (like *, but g* on 'rain' will find words like 'rainbow').
  • g# same as g* but in backward direction.
  • ggdG deletes all lines (remember u to undo).

Comments

Set your 'path' variable properly, put the cursor on a filename (in a #include say) and do a

gf