Ⅰ. 插件描述
Projects building plugin for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'luchermitte/vim-build-tools-wrapper'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'luchermitte/vim-build-tools-wrapper'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'luchermitte/vim-build-tools-wrapper'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/luchermitte/vim-build-tools-wrapper
Ⅳ. 文档说明
# Introduction
BTW has two main purposes:
- To simplify the on-the-fly tuning of
'compiler'settings. - To offer a simplified interface to build, execute, test our programs.
It is also able to interface with projects under CMake.
And, it provides an airline extension
that displays the current project name and compilation mode. This information
will also be displayed for the quickfix window.
Installation
- Requirements: Vim 7.+, lh-vim-lib (v4.0.0)
- With vim-addon-manager, install build-tools-wrapper (this is the preferred method because of the dependencies)
ActivateAddons build-tools-wrapper- or with vim-flavor which also supports
dependencies:
flavor 'LucHermitte/vim-build-tools-wrapper'- or you can clone the git repositories (expecting I haven't forgotten anything):
git clone git@github.com:LucHermitte/lh-vim-lib.git
git clone git@github.com:LucHermitte/vim-build-tools-wrapper.git- or with Vundle/NeoBundle (expecting I haven't forgotten anything):
Bundle 'LucHermitte/lh-vim-lib'
Bundle 'LucHermitte/vim-build-tools-wrapper'See also
Dependencies
You will most certainly require a project management plugin. I can offer you local_vimrc, there are plenty alternatives (with similar names), or even the good old project.vim plugin.
Examples of configuration of BTW
- See the two
_local_vimrc*.vimfiles from my Rasende Roboter solver. - See the two same files from my configuration for working with openjpeg _(link to be added)_.
Alternatives
There are a few alternative plugins that I'm aware of:
- Tim Pope's vim-dispatch regarding the encapsulation of
:make - Marc Weber's name-forgotten plugin to run things in background
- Jacky Alciné's CMake.vim plugin
