Effect sketches in vim at the speed of the light :)
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.
First of all, you need to have Graphviz installed on your machine.
brew install graphviz
Add to you .vimrc
:
Plugin 'guilherme/vim-effect-sketches'
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.
- 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.