If I code in cpp, in Vim I can do:
to quickly compile and run code.
However, if I code in Java, in Vim I can do:
!javac %
for quick compilation, but to run the java class I cannot:
!java %
because I need to put only the class name (without the suffix .java)
Is there a quick way in VIM to do what I did when I encoded in Cpp?
Many thanks.
source
share