Skip to content

sillybun/vim-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-async

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.

  • vim-plug

    • Add Plug 'sillybun/vim-async' to .vimrc
    • Run :PlugInstall
  • Vundle

    • Add Bundle 'https://github.com/sillybun/vim-async' to .vimrc
    • Run :BundleInstall

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]

About

Asynchronously run vimscript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published