Ⅰ. 插件描述
(Outdated) Vim syntax/indent support for GitHub Actions *.workflow filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用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/*.workflowfiles.- It only highlights keywords described in official document. You can easily notice wrong attribute names.
- Indentation for
.github/*.workflowfiles.

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
- GitHub Actions
- About GitHub Actions
- Creating workflows
- Creating a workflow with GitHub Actions
- Workflow configuration options