]> Dogcows Code - chaz/vimcoder/commitdiff
better default preferences for win32
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Tue, 16 Nov 2010 17:04:20 +0000 (10:04 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Tue, 16 Nov 2010 17:04:20 +0000 (10:04 -0700)
fixes #10

src/com/dogcows/VimCoder.java

index 89da76e3757aea92c8b662dbd5f6f6494259e65c..e684746d9db73be189573310995694269c06ec4b 100644 (file)
@@ -28,7 +28,7 @@ public class VimCoder
     /**
      * The name and version of this plugin.
      */
-    public final static String     version = "VimCoder 0.1";
+    public final static String     version = "VimCoder 0.2";
     
     /**
      * The website of the plugin project.
@@ -44,7 +44,16 @@ public class VimCoder
     /**
      * The path to the main VimCoder directory.
      */
-    private static File     rootDir = new File("~/.vimcoder");
+    private static File     rootDir;
+    static
+    {
+        if (System.getProperty("os.name").toLowerCase().equals("win"))
+        {
+            vimCommand = "C:\\WINDOWS\\gvim.bat";
+        }
+        rootDir = new File(System.getProperty("user.home") +
+                           System.getProperty("file.separator") + ".vimcoder");
+    }
     
     
     /**
This page took 0.024039 seconds and 4 git commands to generate.