Simple Playground is a vim plugin that insert the script's output in the current file in comment format after you write/save the file. It works in case one script line produce one output line. ****loop print is not working now
*still not work with loop output line*
*Install*
`copy simply_playground.vim to ~/.vim/plugin`
*then*
define patterns in a function by calling `BuildPlayground(execute_command, comment_pattern, print_pattern)` in `~/.vimrc`
fun! BuildNodePlayground()
call BuildPlayground("node", "//=>", "console.log")
echom "Let's play node"
endfun
- in normal mode
:call BuildNodePlayground()
to enable the playground - to disable
:call DestroyPlayground()