Vim Tips Wiki
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

  • 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.
  • gg goes to the first line in the buffer (or provide a count before the command for a specific line).
  • G goes to the last line (or provide a count before the command for a specific line).

See also

Comments

Advertisement