Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chemzqm/vim-run
- Owner: chemzqm
- Created: 2015-12-30T01:59:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-21T22:15:11.000Z (almost 9 years ago)
- Last Synced: 2024-10-29T12:31:31.687Z (about 2 months ago)
- Language: VimL
- Size: 7.81 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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
```