Clojure & Vim & Ctags (oh my!)

124 views
Skip to first unread message

Alan Thompson

unread,
Sep 4, 2014, 2:38:56 PM9/4/14
to vimcl...@googlegroups.com
Hi,

I've been using Clojure & Vim for a year now, with fireplace, etc.  However, it seems that Exuberant Ctags is a bit crippled since I have not found a way to make it understand namespace aliases. In my current work it seems that nearly every function is in a separate namespace with a namespace alias.  

Unless there is already a tool (or a ~/.ctags regex) to do that, I was thinking about writing a lein plugin (in clojure) to decode namespace aliases in the (ns...) form and create a tags file from scratch. About a year ago (in a previous job), I had to write a similar tool (in Groovy) to create the tags file for PL/I code, so I'm familiar with the ctags file format.

Any thoughts?

Alan

Tim Pope

unread,
Sep 5, 2014, 12:40:21 PM9/5/14
to vimcl...@googlegroups.com
You can sidestep a huge headache by just using Fireplace's ]d instead.

Alan Thompson

unread,
Sep 5, 2014, 2:32:12 PM9/5/14
to vimcl...@googlegroups.com
OK, cool.  I didn't know about that before.

I see that it prints the function definition, but it doesn't jump to the file like crtl-].  Is there something equivalent in fireplace?

Alan


--
You received this message because you are subscribed to the Google Groups "vimclojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vimclojure+...@googlegroups.com.
To post to this group, send email to vimcl...@googlegroups.com.
Visit this group at http://groups.google.com/group/vimclojure.
For more options, visit https://groups.google.com/d/optout.

Alan Thompson

unread,
Sep 5, 2014, 2:35:06 PM9/5/14
to vimcl...@googlegroups.com
OK, I found the 'gf' command described at http://clojure-doc.org/articles/tutorials/vim_fireplace.html

Still missing my crtl-] ...
Alan

Alan Thompson

unread,
Sep 5, 2014, 2:41:40 PM9/5/14
to vimcl...@googlegroups.com
So, 'K' is working, as is '[d'.    For some reason '[<crtl-D>' doesn't work for me.
Also, 'gf' works for the symbol (with NS alias) under the cursor, but I can't seem to find a way to jump back (like crtl-T).
Alan

Mike Reinhardt

unread,
Dec 19, 2016, 2:21:35 PM12/19/16
to vimclojure
I'm really late to reply, but you can always use <Ctrl-O> to jump back to previous cursor position, it will go back through visited buffers too.
Reply all
Reply to author
Forward
0 new messages