February 12, 2003
Class Browser in Vim
It is a common failing of open source/free* software that the documentation could do with more work. Everyone is keen to monkey about with the code but rarely do programmers like to write documentation. When they do, they assume that you are running the software on exactly the same platform that they are, and that you have the same knowledge as they do. This is a mistake I try and avoid in my documentation, and some projects address quite successfully - look at Dan Shafer's PythonCard tutorials for an example of good practice.
Anyway, I downloaded the script, and the Windows source and binary distribution of exuberant ctags. Then it took me about three hours of mucking about and surfing the web to actually get them working.
To save you the same bother, here is what I did;
- Unzipped the ctags distribution and extracted the ctags.exe file. The rest is just the source code.
- Placed the exe file in a directory on my path (this is very important but not mentioned in any of the documentation!). I simply put it in the same directory as gvim.exe because that is already on my path
- Verify that ctags is working by starting up a command line window and simply typing 'ctags'. If this works we can continue, if not you need to play with your path.
- Tell Vim that you've got ctags installed by adding the following line to your _vimrc file;
- Download the taglist.vim file and place it in your plugin directory, the path to mine is C:\Program Files\vim\vim61\plugin yours should be somewhere similar
- Fire up Vim and open a source code file, mine are Python naturally, at the command prompt type 'Tlist' and Bob should be your auntie's live in lover
Easy, really. Now all I need to do is get it working on my Debian box at home.
* - Delete as appropriate.
Posted by Andy Todd at February 12, 2003 11:16 AM