Run file with command in vim and watch result side by side
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
plugin
Readme.md

Readme.md

Vim-run

Run a custom command in vim with current buffer and see the result side-by-side

Usage

Config the command by filetype:

let g:vim_run_command_map = {
  \'javascript': 'node',
  \'php': 'php',
  \'python': 'python',
  \}

Run command with:

:Run

Or you can specify the command after Run:

:Run yourcommand

yourcommand will be used in the following Run and Autorun if they called with empty command argument

Run command with range:

:1,10Run

Run command with visual select:

:'<,'>RunRange

Toggle command autorun on save of current file:

:AutoRun