From: Charles McGarvey Date: Tue, 16 Nov 2010 17:04:20 +0000 (-0700) Subject: better default preferences for win32 X-Git-Tag: v0.3~3 X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=16dcee64f6db922b5f56ac06e0ac6739b95658bb;p=chaz%2Fvimcoder better default preferences for win32 fixes #10 --- diff --git a/src/com/dogcows/VimCoder.java b/src/com/dogcows/VimCoder.java index 89da76e..e684746 100644 --- a/src/com/dogcows/VimCoder.java +++ b/src/com/dogcows/VimCoder.java @@ -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"); + } /**