Skip to content

Instantly share code, notes, and snippets.

@mattn
Created March 4, 2015 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/0243376bd75e198c4ce8 to your computer and use it in GitHub Desktop.
Save mattn/0243376bd75e198c4ce8 to your computer and use it in GitHub Desktop.
diff --git a/autoload/quickrun.vim b/autoload/quickrun.vim
index 18bf012..d59b436 100644
--- a/autoload/quickrun.vim
+++ b/autoload/quickrun.vim
@@ -312,10 +312,10 @@ let g:quickrun#default_config = {
\ },
\ 'kotlin': {
\ 'exec': [
-\ 'kotlinc-jvm %s -jar %s:p:r.jar',
-\ 'java -Xbootclasspath/a:%%{fnamemodify(' .
-\ 'g:quickrun#V.System.Filepath.which("kotlinc-jvm"), ":h")}' .
-\ '/../lib/kotlin-runtime.jar -jar %s:p:r.jar'
+\ 'kotlinc-jvm %s -d %s:p:r.jar',
+\ 'java -Xbootclasspath/a:%{shellescape(fnamemodify(' .
+\ 'fnamemodify(g:quickrun#V.System.Filepath.which("kotlinc-jvm"), ":h") . "/../lib/kotlin-runtime.jar", ":p"))}' .
+\ ' -jar %s:p:r.jar'
\ ],
\ 'tempfile': '%{tempname()}.kt',
\ 'hook/sweep/files': ['%S:p:r.jar'],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment