Code Monkey home page Code Monkey logo

repl.vim's Introduction

repl.vim

Open the interactive environment with the code you are writing.

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 quickinteractive.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
  • Erlang

Installation

$ jolt install repl.vim

will be available soon.

This plugin depends on quickrun, vimshell and their dependencies.

Authors

Tatsuhiro Ujihisa Roman Gonzalez

repl.vim's People

Contributors

roman avatar ujihisa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.