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

https://github.com/maxmellon/jobproc

This plugin provide the system like async function with job API for vim8 and neovim.
https://github.com/maxmellon/jobproc

vim vim-jobs vim-plugin

Last synced: about 1 year ago
JSON representation

This plugin provide the system like async function with job API for vim8 and neovim.

Awesome Lists containing this project

README

          

jobproc
===

![Support Vim 8.0.0039 or above](https://img.shields.io/badge/support-Vim%208.0.0039%20or%20above-yellowgreen.svg?style=flat-square)
![Support Neovim 0.1.7 or above](https://img.shields.io/badge/support-Neovim%200.1.7%20or%20above-yellowgreen.svg?style=flat-square)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](./LICENSE.md)

About
--

`jobproc` is provide the `system()` like function with job (async) API for vim8 and neovim.

Example
--

- with [Shiba command](https://github.com/rhysd/Shiba).

```vim
call jobproc#system('shiba ' . expand('%')) " => boot to markdown previewer of current buffer.
```

- with open command.

```vim
call jobproc#system('open http://google.com') " => boot to browser.
```

- Kana to U.S. when insert to normal mode. (with [keyboardSwitcher](https://github.com/Lutzifer/keyboardSwitcher))

**IME is able to toggle kana to U.S. when leave on insert and vim dont hand up.**

```vim
if executable('keyboardSwitcher')
augroup SwitchIME
autocmd!
autocmd InsertLeave * :call josbproc#system('keyboardSwitcher select U.S.')
augroup END
endif
```

Installation
---

your `~/.vimrc` or `~/.config/nvim/init.vim`.

### vim-plug [https://github.com/junegunn/vim-plug](https://github.com/junegunn/vim-plug)

```vim
Plug 'maxmellon/jobproc'
```

### dein.vim [https://github.com/Shougo/dein.vim](https://github.com/Shougo/dein.vim)

```vim
call dein#add('maxmellon/jobproc')
```

### neobundle.vim [https://github.com/Shougo/neobundle.vim](https://github.com/Shougo/neobundle.vim)

```vim
NeoBundle 'maxmellon/jobproc'
```

### Vundle.vim [https://github.com/VundleVim/Vundle.vim](https://github.com/VundleVim/Vundle.vim)

```vim
Plugin 'maxmellon/jobproc'
```

TODO
---

- [ ] callback when succuess.
- [ ] callback when fail.

LICENSE
---

[![maxmellon](https://avatars1.githubusercontent.com/u/9594376?v=3&u=8fd5ebc98054f4945469deef085ef244f3999206&s=80)](https://twitter.com/mozi_kke)

**Copyright (c) 2016 "MaxMEllon" Kento TSUJI**

Licensed under the [MIT license](./LICENSE.txt)