The longer I work with computers and software development the more I fall in love with a VIM based workflow. Recently I’ve discovered the joys of CTAGS. This is a simple cheatsheet to help me as I’m initially learning to integrate this tool into my workflow. Perhaps you’ll find it useful as well.

Generating Tags

The tags can be generated by simply running:

ctags -R

VIM Cheatsheet

Ctrl + ]Go to definition
Ctrl + TJump back from the definition
Ctrl + W Ctrl + ]Open the definition in a horizontal split
:ts <tag_name>List the tags that match <tag_name>
:tnJump to the next matching tag
:tpJump to the previous matching tag