install.fairie/home/.chezmoiscripts/universal/run_onchange_after_39-vim-plugins.sh.tmpl
Brian Zalewski 8a91bb7875 Latest
2023-06-14 07:06:20 +00:00

13 lines
532 B
Cheetah

{{- if ne .host.distro.family "windows" -}}
#!/usr/bin/env bash
# @file VIM Plugin Pre-Install
# @brief Pre-installs the VIM plugins from their git sources
# @description
# This script pre-installs the VIM plugins defined in [`.chezmoidata.yaml`](https://github.com/megabyte-labs/install.doctor/tree/master/home/.chezmoidata.yaml)
# so that VIM does not have to do anything on its first launch.
### Run the VIM plugin install routine
if command -v vim > /dev/null; then
vim +PlugInstall +qall 2>/dev/null
fi
{{ end -}}