Vim tags

Tags File
Tags enables easy source code navigation in Vim. If a tags file named 'tags' is present in the current directory, it will be auto-loaded by Vim. If exuberant-ctags is installed, the tags file can be generated by this command:

ctags -R --extra=+fq.

-R        means recurse directories --extra=+f means include a tag for each file --extra=+q means include tags with scope, e.g. 'ClassName.MethodName' as well as just 'MethodName'

Mapping this to a hotkey to enable quick update of tags file could be done like this:

map t :!/opt/local/bin/ctags -R --extra=+fq .

Tag Jumping
Examples:

:tag ClassName.MethodName :tag MethodName :tag /^Met.*Name

:vert stag name   - vertical split and jump to tag

Or press Ctrl+] when cursor is on top of a name to jump to the definition of that name.

Tag Previewing
If you just want to remind yourself of method arguments, you could use instead of.

Also, use Ctrl+W } instead of Ctrl+].

Preview window is closed with Ctrl+W z.