Ⅰ. 插件描述
Tiny Vim plugin that turns your file into interactive worksheetⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sombr/vim-scala-worksheet'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sombr/vim-scala-worksheet'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sombr/vim-scala-worksheet'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sombr/vim-scala-worksheet
Ⅳ. 文档说明
vim-scala-worksheet
Tiny Vim plugin that turns your file into interactive worksheet:
Installation
This is just a first sketch of a plugin and it's not particularly pretty, but already quite handy.
It requires though VIM compiled with ruby support.
Just clone repository into your vim/bundle directory.
Using
Files with extension *.scalaws are interpreted as worksheets and evaluated line by line with evaluation results
added as comments to each line.
( It takes a second to evaluate first time because of lazy "scala" execution, but other lines are communicated directly with an existing worksheet instance.