vim-worksheet


Ⅰ. 插件描述

Worksheet for Vim

Ⅱ. 基本信息

创建日期:  2014-09-24
使用用户:  6
Github星:  30
插件作者:  Herrington Darkholme

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'herringtondarkholme/vim-worksheet'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'herringtondarkholme/vim-worksheet'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'herringtondarkholme/vim-worksheet'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/herringtondarkholme/vim-worksheet

Ⅳ. 文档说明

Vim Worksheet

Add worksheet support to Vim.
a

Installation

NeoBundle Recommended

add this line to your .vimrc

NeoBundle 'HerringtonDarkholme/vim-worksheet'

Supported Lang

  • Scala
  • JavaScript
  • Ruby
  • PHP
  • Python
  • TypeScript (you need install TSUN)

NOTICE

Python worksheet is whiteline sensitive.
Try adding or removing extra new lines when it does not work.

Usage

Command:

:WorksheetStart start worksheet session

:WorksheetEval evaluate script and print worksheet

:WorksheetClean clean previous worksheet result

:WorksheetEnd close worksheet session and clean up

Shortcut:

<leader>ws WorksheetStart

<leader><leader> WorksheetEval

<leader>wc WorksheetClean

<leader>we WorksheetEnd

TODO

  • Configuration:

    It only satisifies my need now.
  • Inline mode

    Output repl result in the same buffer, in the same line
  • Appending mode

    Output repl result in the same buffer, in the next line

添加新评论