Run a custom command in vim with current buffer and see the result side-by-side
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