I come from an Eclipse background, but I love Vim as a text editor. I\'m currently experimenting with Vim as a Java IDE. Currently I do this to compile:
! javac
With Makefiles, you could use some very generic things:
JAVAFILES=$(wildcard *.java)
mytarget: $(JAVAFILES)
javac $^
On the other hand, you would probably fine doing
:compiler javac
:se makeprg=javac\ **/*.java
:make
:copen
Map some keys to :cnext
and :cprevious
to navigate errors quickly.
Use :colder
/ :cnewer
to go back to earlier/later quickfix lists. Quickfix will remember where in the quickfix stack you were for a specific quickfix list.