Ⅰ. 插件描述
Vim Plugin for flyⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'cappyzawa/fly-lint-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'cappyzawa/fly-lint-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'cappyzawa/fly-lint-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/cappyzawa/fly-lint.vim
Ⅳ. 文档说明
# fly-lint.vim
Vim Plugin to lint concourse pipeline
Installation
To install using Vim-Plug:
" add this line to your .vimrc file
Plug 'cappyzawa/fly-lint.vim'Supported commands
| Command | Description |
|---|---|
| ValidatePipeline | fly validate-pipeline -c <editing-file> |
| FormatPipeline | fly format-pipeline -c <editing-file> |
| ForceFormatPipeline | fly format-pipeline -w -c <editing-file> |
| EnableAutoValidatePipeline | current buffer is validated automatically(autocmd BufWritePost) |
| DisableAutoValidatePipeline | disable automatical validation(EnableAutoValidatePipeline) |
If you use neovim 0.4.0+, you can use floating window when using FormatPipeline.
The floating window is opened/closed by FormatPipeline.
Key mappings
If g:fly_lint_no_default_mappings is not set to v:true, this plugin also defines following default mapping.
| Key | Command |
|---|---|
| <Leader>vp | ValidatePipeline |
| <Leader>fp | FormatPipeline |
| <Leader>ffp | ForceFormatPipeline |
| <Leader>ea | EnableAutoValidatePipeline |
| <Leader>da | DisableAutoValidatePipeline |