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 640  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: 3.137.221.163

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github