Skip to content

Instantly share code, notes, and snippets.

@baruchel
Last active August 29, 2015 13:57
Show Gist options
  • Save baruchel/9546517 to your computer and use it in GitHub Desktop.
Save baruchel/9546517 to your computer and use it in GitHub Desktop.
Settings for various languages for my Vim REPL plugin

Put the four relevant lines in your ~/.vimrc file. The plugin has to be installed separately from here.

GNU APL

let g:repl_cmd = '/home/pi/APL/svn/trunk/src/apl --noSV --rawCIN --noColor'
let g:repl_stop = ')OFF'
let g:repl_send = "'REPL-VIM'"
let g:repl_detect = 'REPL-VIM'

Maxima

Be very careful when copying the code below, since the space in the repl_detect string is very important.

let g:repl_cmd='stdbuf -i0 -o0 -e0 /usr/bin/maxima --disable-readline --very-quiet --init-mac=<(echo "print(\"(scratch buffer)\");print(\"\");print(\"Vim integration for Maxima\");print(\"==========================\");";)'
let g:repl_stop="quit();"
let g:repl_send='print(\\\"VIMMAXIMAREPL\\\")\$'
let g:repl_detect='\"VIMMAXIMAREPL\" '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment