vim-github-actions


Ⅰ. 插件描述

(Outdated) Vim syntax/indent support for GitHub Actions *.workflow files

Ⅱ. 基本信息

创建日期:  2018-11-04
使用用户:  1
Github星:  18
插件作者:  Linda_pp

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'rhysd/vim-github-actions'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'rhysd/vim-github-actions'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'rhysd/vim-github-actions'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/rhysd/vim-github-actions

Ⅳ. 文档说明

Vim filetype support for GitHub Actions

This is a Vim filetype support for GitHub Actions.

It provides:

  • Highlighting .github/*.workflow files.

    • It only highlights keywords described in official document. You can easily notice wrong attribute names.
  • Indentation for .github/*.workflow files.

screenshot

Installation

If you use any package manager, please follow its instruction.

With vim-plug:

Plug 'rhysd/vim-github-actions'

With dein.vim:

call dein#add('rhysd/vim-github-actions')

With minpac:

call minpac#add('rhysd/vim-github-actions')

When you're using Vim's builtin packager, please follow instruction at :help pack-add.

Usage

After this plugin is loaded, highlights and indentation are automatically applied. You have nothing
to do anymore.

Please confirm that ghaworkflow filetype is set when you open .github/*.workflow files.

Links

License

MIT License

添加新评论