GitXplorerGitXplorer
u

repl.vim

public
54 stars
9 forks
0 issues

Commits

List of commits on branch master.
Verified
d71c5f06da9b15d78adc41fb8f96c833b70bb4fb

Merge pull request #7 from diogogithub/master

uujihisa committed 6 years ago
Unverified
5ef34e26c4dc638d2e52991cc674a0a6a2665796

Add support to SWIProlog

ddiogogithub committed 6 years ago
Unverified
5c85b47c9d4fe71c38e39aabeb8379d369bfef03

Mention about scheme w/ racket

uujihisa committed 7 years ago
Unverified
4910aa7d7b0c7abda92dcfdb4cde030fb839091d

Merge pull request #6 from s-zeng/feature/racket

uujihisa committed 7 years ago
Unverified
60298014d756b8e564003dbc2d8823b204a90182

Fixed extraneous changes 2

ss-zeng committed 7 years ago
Unverified
0b5bb9f3be9165e52d9fc52f1a672616cf000ffe

Fixed extraneous changes

ss-zeng committed 7 years ago

README

The README file for this repository.

repl.vim

Open the interactive environment with the code you are writing.

example

Ruby Example

You are writing the following code in an unnamed buffer.

class C
  def self.f(x)
    x + 1
  end
end

Now you want to try running the code in an interactive environment. Usually you are supposed to (1) save the code on somewhere, (2) open a terminal, (3) run irb -r {the-file}.

If you already installed repl.vim, you just have to run :Repl or to type <space>i. It opens a buffer that is the environment you wanted.

irb>

You can do

irb> C.f 23
24
irb>

Haskell Example

import Test.HUnit
foo _ = (1, 2)
test1 = TestCase (assertEqual "for (foo 3)," (1,2) (foo 3))
tests = TestList [TestLabel "test1" test1]

Run :Repl without saving the code on a file.

ghci> runTestTT tests

Supports

  • Ruby
  • Haskell
  • Python (You can chose python2 or python3 interpreter)
  • Erlang
  • JavaScript
  • Clojure
  • Idris
  • Racket
  • SWIProlog

Installation

Example for neobundle.vim

Please add the following line into your .vimrc

NeoBundle 'ujihisa/repl.vim'

and run :NeoBundleInstall.

Requirements

Authors

  • Tatsuhiro Ujihisa
  • aiya000 <aiya000.develop at gmail com>

Licence

GPL version 3 or any later version Copyright (c) Tatsuhiro Ujihisa