Ⅰ. 插件描述
[abandoned] a vim plugin to run :make in the background, unobtrusively.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gfxmonk/vim-background-make'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gfxmonk/vim-background-make'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gfxmonk/vim-background-make'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gfxmonk/vim-background-make
Ⅳ. 文档说明
background-make
It's not perfect, but for non-pathological makeprg settings it seems to work very reliably. It adds a :Make command that does exactly what :make does, except it does it in the background.
And it tries its very best to not disrupt you - by default, it'll send a system notification the moment that make finishes. But it will then wait until you are in either insert or normal mode, at which point it'll take the opportunity to pop up the error window and restore your cursor position / mode.
Using:
When you would use :make, use :Make instead. Simple!
Customising:
currently the only settable option is changing the notification
command, by setting g:background_make_notify_cmd
The default value is:
notify-send "$msg" "Vim background make"
$msg will be substitited at run time for either "Success!" or "Failed.".
If you don't want any notifications, you can simply set it to "echo" or
something similarly ineffectual.