No description, website, or topics provided.
Vim script
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload/sayid
plugin
syntax
LICENSE
README.md

README.md

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

  • Have a persistent Sayid buffer
  • Provide default mappings for basic functionality (e.g., enable/disable tracing, query, show-workspace)
  • Syntax highlighting