lib/vimgolf/cli.rb in vimgolf-0.4.0 vs lib/vimgolf/cli.rb in vimgolf-0.4.1
- old
+ new
@@ -73,10 +73,10 @@
# - n - no swap file, memory only editing
# - +0 - always start on line 0
# - --noplugin - don't load any plugins, lets be fair!
# -i NONE - don't load .viminfo (for saved macros and the like)
# - u - load vimgolf .vimrc to level the playing field
- vimcmd = "#{GOLFVIM} -Z -n --noplugin -i NONE +0 -u \"#{vimrc(id)}\" -W \"#{log(id)}\" \"#{input(id, type)}\""
+ vimcmd = "#{GOLFVIM} -Z -n --noplugin -i NONE +0 -u \"#{challenge.vimrc_path}\" -W \"#{challenge.log_path}\" \"#{challenge.work_path}\""
debug(vimcmd)
system(vimcmd)
if $?.exitstatus.zero?
diff_files = "\"#{challenge.work_path}\" \"#{challenge.output_path}\""