Skip to content

Instantly share code, notes, and snippets.

@cb372
Created July 12, 2013 03:05
Show Gist options
  • Save cb372/5981108 to your computer and use it in GitHub Desktop.
Save cb372/5981108 to your computer and use it in GitHub Desktop.
Write the current vim buffer to a temp file and load it in the Scala REPL
" Write the current buffer to a temp file and load it in the Scala REPL
function RunInScalaREPL()
let l:tmpfile = tempname() . '.scala'
execute 'write ' . l:tmpfile
execute '!scala -i ' . l:tmpfile
endfunction
command Scala call RunInScalaREPL()
command REPL call RunInScalaREPL()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment