Wikia

Vim Tips Wiki

Changes: Jumping to the declaration of a local/global variable

Edit

Back to page

(Change <tt> to <code>, perhaps also minor tweak.)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 33: Line 33:
   
 
----
 
----
ctags can be used to do a more comprehensive job. Make 'tags' file with: {{tt|ctags -R *.cpp *.h}}
+
ctags can be used to do a more comprehensive job. Make 'tags' file with: <code>ctags -R *.cpp *.h</code>
   
 
Then, goto any variable and pressing Ctrl-] will take you to the declaration/definition. Same for functions as well. Use Ctrl-t to return back.
 
Then, goto any variable and pressing Ctrl-] will take you to the declaration/definition. Same for functions as well. Use Ctrl-t to return back.

Latest revision as of 12:27, July 15, 2012

Around Wikia's network

Random Wiki