Ⅰ. 插件描述
My attempts at async make, etc for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rygwdn/vim-async'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rygwdn/vim-async'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rygwdn/vim-async'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rygwdn/vim-async
Ⅳ. 文档说明
Async Commands for Vim
The goal of this project is to provide a simple async framework for Vim.
Currently, you can run a subprocess in the background and have Vim run a callback function when it is done. You can also run any Python code in the background, and get a callback when it is done.
There are also commands for running :make in the background:
- :Amake attempts to act exactly the same as :make, but runs in the background
- :Remake attempts to do the same, but will only allow one program to build at a time, so you can call :Remake as often as you like, and only one make process will be launched at a time. Eg. if you run :Remake, then while it's still compiling run :Remake 3 more times, once the first make process is done compiling, the quickfix window will be updated, then make will be called again.