vim-async
August 9, 2019 ยท View on GitHub
Introduction
This plugin provide API to run vim function asynchronously.
Usage
The code need to be executed should be put into list. For example:
let to_be_executed = ['let g:a = 1', 'let g:b = g:a + 1', 'if g:b == 2', 'echo "hello world"', 'endif']
And then start the asynchronous job by:
AsyncCodeRun(to_be_executed, 'code_name')
Install
Use your plugin manager of choice.
-
- Add
Plug 'sillybun/vim-async'to .vimrc - Run
:PlugInstall
- Add
-
- Add
Bundle 'https://github.com/sillybun/vim-async'to .vimrc - Run
:BundleInstall
- Add
Feature
- Support Basic Expression:
let, set, echo[m], call, execute, ... - Support if-statement: if/elseif/else/endif
- Support
wait [condition] - Support
sleep [time][s|ms] - Support
LABEL [name],GOTO [name]