Ⅰ. 插件描述
Displays the results of every line of code in your fileⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'joshcheek/seeing-is-believing'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'joshcheek/seeing-is-believing'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'joshcheek/seeing-is-believing'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/joshcheek/seeing_is_believing
Ⅳ. 文档说明
Seeing Is Believing
Evaluates Ruby code, recording the results of each line.
Integrates with any extensible editor (I've integrated it with many already, see the list).
If you like Swift Playgrounds, you'll like SiB.

Helpful links
- Install
- Integrate with your editor
- Use as a library
- Use on the command line
- Pro Tips (useful patterns)
- Features
- Potential Future Features
- Set up it up for development work
Examples
- Watch a longer video.
- Watch John Cinnamond use it in a presentation
at the 10:22 minute mark. - Avdi uses it in Ruby Tapas,
an amazing resource for developers in general and Ruby Developers in particular!
Known Issues
- Assumes utf-8 everywhere. If this is an issue, please see the encodings section of the wiki.
Inspiration
- Xmpfilter, which is a part of the rcodetools gem.
- Bret Victor's completely inspiring talk Inventing on Principle.
- My 8th Light mentor, Doug Bradbury who asked me to make it for his Kids Ruby sessions (I don't think we ever finished integrating it, though >.<)
Shout outs
- Whitequark for all the work on Parser, which dramatically dramatically improved SiB (I used to have my own horribly shitty line-based parser)
- Travis CI... I love you times a million! So many difficult bugs have been caught by this.
It's so easy to work with, astoundingly convenient, helps me guarantee that SiB works on everyone else's computers, too. And it's free since SiB is open source.
I literally have a Travis CI sticker on my laptop, I love you that much.
License
Copyright (C) 2014 Josh Cheek <josh.cheek@gmail.com>
This program is free software. It comes without any warranty,
to the extent permitted by applicable law.
You can redistribute it and/or modify it under the terms of the
Do What The Fuck You Want To Public License,
Version 2, as published by Sam Hocevar.
See http://www.wtfpl.net/ for more details.