Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ujihisa/repl.vim
irb, ghci, and anything else. in Vim.
https://github.com/ujihisa/repl.vim
Last synced: about 1 month ago
JSON representation
irb, ghci, and anything else. in Vim.
- Host: GitHub
- URL: https://github.com/ujihisa/repl.vim
- Owner: ujihisa
- Created: 2010-09-21T06:02:22.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T23:13:10.000Z (almost 6 years ago)
- Last Synced: 2024-05-01T23:19:42.015Z (7 months ago)
- Language: Vim script
- Homepage:
- Size: 720 KB
- Stars: 54
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# repl.vim
Open the interactive environment with the code you are writing.
![example](top.gif)
## Ruby Example
You are writing the following code in an unnamed buffer.
class C
def self.f(x)
x + 1
end
endNow 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 `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](https://github.com/Shougo/neobundle.vim)
Please add the following line into your .vimrc
NeoBundle 'ujihisa/repl.vim'
and run `:NeoBundleInstall`.
## Requirements
* [vimshell.vim](https://github.com/Shougo/vimshell.vim)
* [vimproc.vim](https://github.com/Shougo/vimproc.vim) (vimproc.vim is required by vimshell.vim)## Authors
* Tatsuhiro Ujihisa
* aiya000## Licence
GPL version 3 or any later version
Copyright (c) Tatsuhiro Ujihisa