Fandom

Vim Tips Wiki

Tags for Mixed Assembly and C

Redirected from VimTip404

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Tip 404 Printable Monobook Previous Next

created 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.

CommentsEdit

What on earth does this accomplish? How does this get the assembly symbols in the tags files? Why doesn't it work out-of-the-box (what problem does this solve)?

--Fritzophrenic 15:31, May 3, 2011 (UTC)

Also on Fandom

Random Wiki