Vim Tips Wiki
Advertisement
Tip 9 Printable Monobook Previous Next

created February 24, 2001 · complexity basic · author Yegappan · version 5.7


To display the definition of a variable, place the cursor on the variable and use the [i command.

To display a macro definition, place the cursor on the macro name and use the [d command.

To display all the lines containing the variable name under the cursor, use the [I command.

These commands work by literally searching for the text. So these commands will work in most of the cases (but not in all cases).

References

Comments

You can also do ]<c-i> to jump to the place where it is defined.


gd

will also take you to where it is defined (unless it is global, in which case gD works).


Advertisement