vim with ctags
Thursday, April 20, 2006 6:08:42 PM
apt-get install ctags
In order to use ctags, first run the command at destination directory where the source codes are located.
ctags -R *
-R is to recursively generate ctags file across certain directories. A 'tags' file will be created. If you have learn vi from vimtutor, you may know that to jump from one keyword to targeted location is to press 'ctrl ]'. Same as ctags works.
Let say when you discover a function call which you wanna see the definition, simply point the cursor to that function and press 'ctrl ]' and it will brings you there. If you wants to go back to where you came from, simply press 'ctrl t'.
Bare in mind, if the function calls are from libraries such as stdio, curses etc, you won't be able to jump to.













