fly-lint.vim


Ⅰ. 插件描述

Vim Plugin for fly

Ⅱ. 基本信息

创建日期:  2019-03-08
使用用户:  1
Github星:  2
插件作者:  Shu Kutsuzawa

Ⅲ. 安装方法

使用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

CommandDescription
ValidatePipelinefly validate-pipeline -c <editing-file>
FormatPipelinefly format-pipeline -c <editing-file>
ForceFormatPipelinefly format-pipeline -w -c <editing-file>
EnableAutoValidatePipelinecurrent buffer is validated automatically(autocmd BufWritePost)
DisableAutoValidatePipelinedisable 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.

KeyCommand
<Leader>vpValidatePipeline
<Leader>fpFormatPipeline
<Leader>ffpForceFormatPipeline
<Leader>eaEnableAutoValidatePipeline
<Leader>daDisableAutoValidatePipeline

添加新评论