From c73d350fbb148d1f0b5901412b5788bc8a05740f Mon Sep 17 00:00:00 2001 From: Chiel92 Date: Sat, 16 Mar 2013 11:16:53 +0100 Subject: [PATCH] js uses softtabstop now, java sample added --- plugin/defaults.vim | 4 ++-- samples/java.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 samples/java.java diff --git a/plugin/defaults.vim b/plugin/defaults.vim index a9a1d59..f36ff44 100644 --- a/plugin/defaults.vim +++ b/plugin/defaults.vim @@ -1,4 +1,4 @@ -if !exists("g:formatprg_cs") | let g:formatprg_cs = "zastyle" | endif +if !exists("g:formatprg_cs") | let g:formatprg_cs = "astyle" | endif if !exists("g:formatprg_args_cs") | let g:formatprg_args_expr_cs = '"--mode=cs --style=ansi -pcHs".&softtabstop' | endif if !exists("g:formatprg_c") | let g:formatprg_c = "astyle" | endif @@ -32,5 +32,5 @@ if !exists("g:formatprg_javascript") endif endif if !exists("g:formatprg_args_javascript") - let g:formatprg_args_javascript = "-i" + let g:formatprg_args_expr_javascript = '"-i -s".&softtabstop' endif diff --git a/samples/java.java b/samples/java.java new file mode 100644 index 0000000..106a31a --- /dev/null +++ b/samples/java.java @@ -0,0 +1 @@ +public class Blastoff{ public static void main(String[] args) { public static void countdown(int n, int m) { if (n == 0) { System.out.println("Blastoff!"); } else { System.out.println(n); countdown(n - 1); } } }}