Skip to content

guilherme/vim-effect-sketches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

vim-effect-sketches

Effect sketches in vim at the speed of the light :)

Why ?

Sometimes code can be really messy and you need a way to track where the calls are made. You could use a pen and paper, a more sofiscated approach or you could use your text editor to mark the callgraph as you go through the code. That's where vim-effect-sketches can help you.

Installing

First of all, you need to have Graphviz installed on your machine.

brew install graphviz

Using Vundle

Add to you .vimrc:

Plugin 'guilherme/vim-effect-sketches'

Shortcuts

F2 - Mark word under cursor as node in the effect sketch.
F3 - Remove previous node from the effect sketch
F4 - Generate an SVG with the graph and try to open it using OSX's open (works on OSX)
F5 - Remove all nodes.

Yeah F* feels like 90s. That's ok. This is only the beginning of this plugin.

TODO

  • Think of 21st century shortcuts.
  • Add support for multiple branches from a single node.
  • Support multiple platforms.
  • Create nodes with language contextual information instead of just the words under the cursor. Like: ClassName#instance_method.

Releases

No releases published

Packages

No packages published