mercury : execute any fragment of code directly from vim
| script karma
Downloaded by 111
Comments, bugs, improvements
script versions (upload new version)
|mercury allows you to take a fragment of code from some source (current line, selection, buffer), execute the code intelligently, and then write the result to some destination (message window, selection, register, new split).
* choose the correct interpreter with the correct switches, given the filetype.
* execute it in a separate thread and terminate it after a timeout, so an endless loop will not freeze vim.
* some language specific smartness (e.g. handling imports).
For more information, head over to github: https://github.com/nielsmadan/mercury
|mercury requires venom, which in turn requires vim to be compiled with python support (most vim distributions are). Vundle or pathogen are highly recommended for installation.
For what it's worth, the order actually does not matter.
Unzip mercury.zip and venom.zip into your pathogen directory. You can get venom from here: http://www.vim.org/scripts/script.php?script_id=4491
Click on the package to download.
ip used for rating: 22.214.171.124