vim, ctags and taglist stuff
Posted: Wed Jan 07, 2009 8:52 pm
To make a long story short, I'm transitioning back to vim
after using emacs for some years now.
I'm using newlisp.vim, thanks to Cyril. I just got done adding
some code to using ctags and the taglist plugin.
I did the following:
1)in the taglist plugin added the following
2)In the .ctags file added this:
This perhaps could be helpful to some vim/newlisp users.
BTW: I'm weak on regexes, every time I use them lately, it seems
like I'm learning the protocol all over again, so if anyone can improve
on them, I'd be grateful.
If any vim users are unfamiliar with taglist, I'd certainly recommend that
you look into it, because it is a nice feature that makes vim more
of an IDE.
Thanks
Tim
after using emacs for some years now.
I'm using newlisp.vim, thanks to Cyril. I just got done adding
some code to using ctags and the taglist plugin.
I did the following:
1)in the taglist plugin added the following
Code: Select all
" newlisp language
let s:tlist_def_newlisp_settings = 'newlisp;c:class;m:member;f:function'
Code: Select all
--langdef=newlisp
--langmap=newlisp:.lsp
--regex-newlisp=/\(define \(*([^ ]+)[ ]*[ \)]/\1/f,function/
--regex-newlisp=/\(context '*([^ ]+)[ ]*[\)]/\1/c,class/
BTW: I'm weak on regexes, every time I use them lately, it seems
like I'm learning the protocol all over again, so if anyone can improve
on them, I'd be grateful.
If any vim users are unfamiliar with taglist, I'd certainly recommend that
you look into it, because it is a nice feature that makes vim more
of an IDE.
Thanks
Tim