- String[] exec = {"gvim", "--servername", "VimCoder" + id, command};
- exec = Util.concat(exec, arguments);
- Process child = Runtime.getRuntime().exec(exec, null, directory);
+ String[] vimCommand = VimCoder.getVimCommand().split("\\s");
+ String[] flags = {"--servername", "VimCoder" + id, command};
+ vimCommand = Util.concat(vimCommand, flags);
+ vimCommand = Util.concat(vimCommand, arguments);
+ Process child = Runtime.getRuntime().exec(vimCommand, null, directory);