fixup: wrap vim installers with functions
[webi-installers/.git] / vim-sensible / install.sh
index 85acfc1f38da9bd101da91b6ab9b33b009e1c33d..50a84edf4a7f21df649ee7851a283233a1d432d1 100644 (file)
@@ -1,18 +1,6 @@
 #!/bin/bash
 
-# title: vim-sensible
-# homepage: https://github.com/tpope/vim-sensible
-# tagline: |
-#   Vim Sensible: sensible defaults for vim
-# description: |
-#   Think of sensible.vim as one step above 'nocompatible' mode: a universal set of defaults that (hopefully) everyone can agree on.
-# examples: |
-#
-#   Installs to `$HOME/.vim/pack/plugins/start`.
-#   It just works.
-#
-
-{
+function __init_vim_sensible() {
     set -e
     set -u
 
@@ -20,3 +8,5 @@
     rm -rf "$HOME/.vim/pack/plugins/start/sensible" "$HOME/.vim/pack/plugins/start/vim-sensible"
     git clone --depth=1 https://tpope.io/vim/sensible.git "$HOME/.vim/pack/plugins/start/vim-sensible"
 }
+
+__init_vim_sensible