Vim Tips Wiki
(Move categories to tip template)
(Remove html character entities)
Line 12: Line 12:
 
|category2=
 
|category2=
 
}}
 
}}
While accessing C functions/variables from assembly (especially for those DSP/low level guys out there) the usual exhuberant ctags doesn't work.
+
While accessing C functions/variables from assembly (especially for those DSP/low level guys out there) the usual exuberant ctags doesn't work.
   
 
The solution:
 
The solution:
 
#Make a copy of the 'tags' file.
 
 
#Search and replace all variables and functions of C files with _variables and _functions in the copy file, say 'Tags' &ndash; for example, in Vim <tt>:g/\.c\>/s/^\(\l.\)/_\1/</tt>
#Make a copy of 'tags' file
 
 
#In Vim <tt>:set tags=tags,Tags</tt>
 
#Search and replace all variables &amp; functions of C files with _variables &amp; _functions in the copy file, say 'Tags' &ndash; for example, in Vim <tt>:g/\.c\&gt;/s/^\(\l.\)/_\1/</tt>
 
 
#In Vim :set tags=tags,Tags
 
 
 
#Use Ctrl-] to sail through.
 
#Use Ctrl-] to sail through.
   
 
==Comments==
 
==Comments==
 
----
 

Revision as of 08:39, 29 September 2008

Tip 404 Printable Monobook Previous Next

created January 16, 2003 · complexity basic · author Vasudev Nayak · version 5.7


While accessing C functions/variables from assembly (especially for those DSP/low level guys out there) the usual exuberant ctags doesn't work.

The solution:

  1. Make a copy of the 'tags' file.
  2. Search and replace all variables and functions of C files with _variables and _functions in the copy file, say 'Tags' – for example, in Vim :g/\.c\>/s/^\(\l.\)/_\1/
  3. In Vim :set tags=tags,Tags
  4. Use Ctrl-] to sail through.

Comments