Thread: [Ctags] jdk & ctags
Brought to you by:
dhiebert
From: Stefan U. <ste...@st...> - 2005-02-12 17:36:28
|
hi, i want to have code completion in vim with java. it works quite well on my own classes (using the cppcompletion plugin). but i still need to get the ctags from the jdk. Do you know how i can get them? thanks! regards stef |
From: Elliott H. <en...@je...> - 2005-02-12 21:47:01
|
On Feb 12, 2005, at 09:36, Stefan Ulbrich wrote: > i want to have code completion in vim with java. it works quite well > on my own classes (using the cppcompletion plugin). but i still need > to get the ctags from the jdk. Do you know how i can get them? that sounds like a vim question more than a ctags one. the ctags man page explains how to create tags manually, but i don't know how you then get vim to use them. you're basically looking at using xargs to provide the .java filenames to ctags -a (plus whatever options vim wants). note that the current version of Exuberant ctags can't parse Java 1.5 source (though it thinks it can). i posted a patch for generic classes, and someone else put one in the patch queue for enums (though i believe that's incomplete, but it's better than nothing). -- Elliott Hughes, http://www.jessies.org/~enh/ |
From: Florentin I. <flo...@ya...> - 2005-02-13 21:23:51
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Vim completion is in work now, there is an intellisense project for vim which works on windows though. If you do "set tags=<your tags file> this is useful to have in .vimrc: "Zellner&Cerna cool tab """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" fun! InsertTabWrapper() let col = col('.') - 1 if !col || getline('.')[col - 1] !~ '\k' return "\<tab>" else return "\<c-p>" endif endfun imap <tab> <c-r>=InsertTabWrapper()<cr> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Elliott Hughes wrote: | On Feb 12, 2005, at 09:36, Stefan Ulbrich wrote: | |> i want to have code completion in vim with java. it works quite well |> on my own classes (using the cppcompletion plugin). but i still need |> to get the ctags from the jdk. Do you know how i can get them? | | | that sounds like a vim question more than a ctags one. the ctags man | page explains how to create tags manually, but i don't know how you then | get vim to use them. you're basically looking at using xargs to provide | the .java filenames to ctags -a (plus whatever options vim wants). | | note that the current version of Exuberant ctags can't parse Java 1.5 | source (though it thinks it can). i posted a patch for generic classes, | and someone else put one in the patch queue for enums (though i believe | that's incomplete, but it's better than nothing). | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCD8UvbiWcUIROk7oRAhd+AJ97aoUgDB/3IopWvR57DwAU4KdkaQCgydKr X2SV2dSDYxJHN607dDxt9Qg= =1vpa -----END PGP SIGNATURE----- |