Wednesday, February 25, 2009

Ctags TIPS and Command

Run vim (full path /usr/misc/bin/vim)
Type :tj (Example: :tj api_Timer::clear, choose a number)
You are there!
Tips

:tj[ump] (or move your cursor to it and press "g Cltr+]"*)
Jump to the tag directly when there is only one match

:tn[ext]
Jump to next matching tag

:tp[revious]
Jump to previous matching tag

:tf[irst]
Jump to first matching tag

:tl[ast]
Jump to last matching tag

:po[p] (or Ctrl+T)
Jump to older entry in tag stack

:ta[g]
Jump to newer entry in tag stack

:tags
Show the contents of the tag stack. The active entry is marked with a '>'

:tj /^get
Lists all the tags that starts with "get"

:tj /norm
Lists all the tags that contain "norm", including "id_norm"

Notes
*By default, Cltr+] is escape character for telnet. You can disable it through
Windows DOS: telnet -e '' (two single quote ')
Unix: telnet -E
You should use dtterm (/usr/dt/bin/dtterm) to enable vim to support color mode

No comments: