next up previous contents
Next: ThornLists Up: Using Tags Previous: Tags with Emacs   Contents

Tags with vi

The commands available are highly dependent upon the version of vi, but the following is a selection of commands which may work.

  1. vi -t tag Start vi and position the cursor at the file and line where `tag' is defined.

  2. Control-] Find the tag under the cursor.

  3. :ta tag Find a tag.

  4. :tnext Find the next matching tag.

  5. :pop Return to previous location before jump to tag.

  6. Control-T Return to previous location before jump to tag (not widely implemented).





Note: Currently some of the CCTK_FILEVERSION() macros at the top of every source file don't have a trailing semicolon, which confuses the etags and ctags programs, so tags does not find the first subroutine in any file with this problem.