From 16dcee64f6db922b5f56ac06e0ac6739b95658bb Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Tue, 16 Nov 2010 10:04:20 -0700 Subject: [PATCH] better default preferences for win32 fixes #10 --- src/com/dogcows/VimCoder.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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"); + } /** -- 2.45.2