Skip to content

porada/action-setup-vim-plug

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

action-setup-vim-plug

Set up vim-plug in a GitHub Actions workflow.

Usage

- uses: porada/action-setup-vim-plug@v1
- run: |
    vim -es \
      +"call plug#begin()" \
      +"Plug 'tpope/vim-sensible'" \
      +"Plug 'tpope/vim-surround'" \
      +"call plug#end()" \
      +"PlugInstall --sync" \
      +"qall!"

Prerequisites

This action doesn’t install Vim, so make sure it’s available beforehand.

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: rhysd/action-setup-vim@v1
      - uses: porada/action-setup-vim-plug@v1

Caution

Most Plug* commands rely on Vim’s GUI features and may fail in CI unless a headless build is used.

Supported Inputs

autoload-dir

Custom installation path for plug.vim. Necessary when using Neovim.

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: rhysd/action-setup-vim@v1
        with:
          neovim: true
      - uses: porada/action-setup-vim-plug@v1
        with:
          autoload-dir: '$HOME/.local/share/nvim/site/autoload'

About

Set up vim-plug in a GitHub Actions workflow

Topics

Resources

License

Stars

Watchers

Forks