I found a vim plugin that actually call the page directly from a vim buffer.
Installation
I assume here you have pathogen already installed.note: webapi-vim is a dependency
# cd ~/.vim/bundle # git clone https://github.com/mattn/webapi-vim.git # git clone https://github.com/mattn/goplayground-vim.git
Usage
The plugin is associated with the .go files so you need to open one (you actually don't need to save it)# vim test.goType your snippet and [ESC]:Playground
... and boom ! Thanks mattn for the plugin !
No comments:
Post a Comment