Coder Social home page Coder Social logo

tomtom / workbook_vim Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 0.0 2.44 MB

Interactively work with interpreteted languages (R etc.)

Home Page: http://www.vim.org/scripts/script.php?script_id=5527

License: GNU General Public License v3.0

Vim Script 94.66% R 5.14% Scala 0.20%
vim vim-plugin r repl workbook worksheet

workbook_vim's Introduction

The long-term goal of this plugin is to provide notebook-like interaction with interpreted languages similar to Mathematica or Jupyter (within the limits of a text editor like vim).

Features

  • Run an interpreter as an inferior process.
  • Send code to this process (asynchronously without blocking vim).
  • Insert (or dynamically update) the results into the source code (as commented out block below the respective source code). See also g:workbook#insert_results_in_buffer.
  • Transcribe the interaction with the interpreter.
  • Provide code completion (see 'omnifunc') for some filetypes.

How to use this plugin

  • Open a file with a supported filetype (see below or workbook#GetSupportedFiletypes()).
  • Type :Workbook or add the filetype to g:workbook_autosetup_filetypes to automatically enable the workbook mode for the specified filetypes.
  • Press <c-cr> to evaluate the current paragraph.
  • Press <localleader>w<F1> for help on other commands and maps -- see also workbook#SetupBuffer().

The following filetypes are supported well

  • R (supports code completion)
  • Rmd (same as R)

Experimental/basic support is provided for:

  • fsharp
  • javascript
  • python
  • ruby
  • scala
  • sh (default: bash)
  • vim

Currenty, the main use case is to interact with R. Other than other well-known R-related vim plugins, the workbook plugin has no non-vim dependencies and works at least on Linux and Windows with no problems.

Demo

demo video]


Install

Either use the zip archive:

  • Download the zip archive
  • Extract it to ~/.vim/pack/tml/start/workbook

or install from github:

NOTE: On Windows, ~/.vim might be ~/vimfiles. Please see 'runtimepath' for details.

Requirements

This script requires tlib (vimscript #1863) to be installed -- see https://github.com/tomtom/tlib_vim.

Dependencies:

tlib (>= 1.22)
http://github.com/tomtom/tlib_vim

License: GPLv3 or later

workbook_vim's People

Contributors

tomtom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.