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.
- Host: GitHub
- URL: https://github.com/maxmellon/jobproc
- Owner: MaxMEllon
- License: mit
- Created: 2017-02-18T20:52:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-19T07:52:52.000Z (over 9 years ago)
- Last Synced: 2025-02-13T17:15:53.829Z (over 1 year ago)
- Topics: vim, vim-jobs, vim-plugin
- Language: Vim script
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
jobproc
===


[](./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
---
[](https://twitter.com/mozi_kke)
**Copyright (c) 2016 "MaxMEllon" Kento TSUJI**
Licensed under the [MIT license](./LICENSE.txt)