sponsor Vim development Vim logo Vim Book Ad

JavaRun : Compile and run Java program

 script karma  Rating 329/177, Downloaded by 10745  Comments, bugs, improvements  Vim wiki

created by
Kendrew Lau
 
script type
utility
 
description
Save/compile (if necessary) and run the Java, Python, Perl, Ruby, Tcltk or CLisp source program in the current buffer.

Some useful abbreviations for Java programming, e.g. psvm for "public static void main(String[] args) { }", cl for class, etc.
 
install details
Source this .vim file or put it in the plugin directory.
On editing a Java or other program, execute :Run [args...]<CR>
where args are optional command line arguments to the program.

Alternatively, just press <F5> to run the program without arguments.

This script use the jikes compiler for Java program by default. You may change to javac by modifying the makeprg and errorformat options inside the script.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
JavaRun.vim 0.2 2002-11-18 6.0 Kendrew Lau Added useful abbreviations for Java programming, e.g. psvm for "public static void main(String[] args) { }", cl for class, etc.

Added key mapping for <F5> to run the program.

Added support for running Python, Perl, Tcltk, Ruby, CLisp programs (according to file extension).
JavaRun.vim 0.1 2002-03-13 6.0 Kendrew Lau Initial upload
ip used for rating: 52.3.228.47

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN