[Baypiggies] newbie nugget

Benjamin Sergeant bsergean at gmail.com
Sun Dec 28 03:26:13 CET 2008


Maybe there's a fancier way to do that, but that works for me (tested with a
jump to a function).

With vim:
:cd your_project_root
:!ctags -R .
:set tags=tags
Ctrl ] will jump to the "word under the cursor" definition.
I think it's alt-d in emacs.

The problem is updating the tags file. I sometimes add a Makefile rule to a
Makefile that sits in my project root folder. You can probably do something
fancy with an event system (inotify or kqueue ?) to monitor files save and
do the updating automatically.


- Benjamin.



On Sat, Dec 27, 2008 at 5:39 PM, Shannon -jj Behrens <jjinux at gmail.com>wrote:

> I don't know if we have anyone scheduled to do a newbie nugget.  I
> personally would love it if someone showed us (i.e. me) how to setup
> TAGS for a Python project in either Emacs or Vim.
>
> ;)
> -jj
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20081227/cd68a9f8/attachment.htm>


More information about the Baypiggies mailing list