Browse files

Version 1.0: Initial upload

  • Loading branch information...
0 parents commit b75d22123760090dfcd311ca2c030bb055ee35d8 @khorser khorser committed with Dec 3, 2012
Showing with 721 additions and 0 deletions.
  1. +51 −0 README
  2. +455 −0 autoload/repl.vim
  3. +191 −0 plugin/repl.vim
  4. +24 −0 syntax/repl.vim
@@ -0,0 +1,51 @@
+This is a mirror of
+A script to interact with interpreters that have REPL.
+Main features:
+* non-intrusive
+* cross-platform (you need to install AND build Vimproc from
+* syntax highlighting is supported
+* easy to customise and add new interpreters (see plugin/repl.vim for details)
+Interpreters supported out of box:
+Shell: bash, tcsh, cmd.exe
+Haskell: GHCi, Hugs
+Scheme: Racket, Chicken
+Computer algebra: REDUCE, Maxima
+ :Open<YourInterpreter> <ExtraArguments> - start session
+ e.g.
+ :OpenGHCi to start GHCi
+ :OpenGHCi! to forcefully start a new session in a new window
+ :CloseRepl (local to the repl window) - disconnect REPL
+ :CloseRepl! - disconnect and wipeout the buffer
+ :SaveInput <filename> - save input lines, use ! to force overwrite
+ global:
+ <Leader>e - in normal mode: send current line to the interpreter, in visual mode: send selection
+Local to the REPL window (normal mode only)
+ <Return> - send current command to the interpreter
+ <C-J> - copy current command to the command prompt
+ <C-K> - recall previous command to the command prompt
+ <count>[[ - navigate to the start of the current or previous command
+ <count>]] - navigate to the start of the next command
+ <count>[] - go to the end of the previous command
+ <count>][ - go to the end of current or the next command
+The following function can be used to define your own mappings or autocommands:
+ repl#SendText(bufOrType, text)
+ bufOrType: buffer number or its type ('' means currently active buffer)
+ text: a list of strings to join and send to REPL
+ You may edit and re-execute commands and the plugin should update output using its markers
+Feel free to send you comments. Especially I would like to hear what autocommands are worth using besides CursorHold
Oops, something went wrong.

0 comments on commit b75d221

Please sign in to comment.