sponsor Vim development Vim logo Vim Book Ad

vim-run : Run command in vim with current buffer and see the result side-by-side

 script karma  Rating 0/0, Downloaded by 825  Comments, bugs, improvements  Vim wiki

created by
qiming zhao
 
script type
utility
 
description
The project is hosted at github: https://github.com/chemzqm/vim-run

## Usage

Config the command by filetype:

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

Run command with:

``` vim
:Run
```

Or you can specify the command after `Run`:

``` vim
:Run yourcommand
```

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

Run command with range:

``` vim
:1,10Run
```

Run command with visual select:

``` vim
:'<,'>RunRange
```

Toggle command autorun on save of current file:

``` vim
:AutoRun
```
 
install details
Install with your favorite plugin managers like NeoBundle/Plugin/Plug
>
NeoBundle 'chemzqm/vim-run'
Plugin 'chemzqm/vim-run'
Plug 'chemzqm/vim-run'
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-run.zip 0.1.0 2016-01-02 7.0 qiming zhao Initial upload
ip used for rating: 216.73.216.130

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github