vim-sayid


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2017-02-13
使用用户:  1
Github星:  16
插件作者:  Arsene Rei

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-sayid

This is currently a proof of concept in getting Vim to play nice with Bill
Piel's Sayid, a Clojure debugging tool. It effectively will retain historical
tracing data of your code so you can identify what problems, if any exist in
your code.

Requirements

Installation

Plug 'arsenerei/vim-sayid'

Basics

NB: This is a proof of concept; expect things to change.

Create a sample project and fire up a REPL. In your core.clj file, add the
following:

(defn add [a b]
   (+ a b))

Trace this namespace:

gst

Execute this in the quasi-repl (via cqp):

(add 1 1)

Take a look at the Sayid workspace:

gsw

Get a deeper look at what add returned by placing your cursor over the add
line:

gsq

Explore your tracings with the following inside the buffer:

ii: investigate the input and output of a particular trace-id

id: investigate the intput and output of a particular trace-id and its

  descendants
  

fi: investigate the input and output of a particular function

fd: investigate the intput and output of a particular function and its

  descendants

TODO

  • [x] Have a persistent Sayid buffer
  • [x] Provide default mappings for basic functionality (e.g., enable/disable

      tracing, query, show-workspace)
  • [x] Syntax highlighting

添加新评论