Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chemzqm/vim-run

Run file with command in vim and watch result side by side
https://github.com/chemzqm/vim-run

Last synced: about 1 month ago
JSON representation

Run file with command in vim and watch result side by side

Awesome Lists containing this project

README

        

# Vim-run

[![](http://img.shields.io/github/issues/chemzqm/vim-run.svg)](https://github.com/chemzqm/vim-run/issues)
[![](http://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![](https://img.shields.io/badge/doc-%3Ah%20vim--run.txt-red.svg)](doc/vim-run.txt)

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

## 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
```