From: AJ ONeal Date: Mon, 22 Mar 2021 05:30:41 +0000 (+0000) Subject: fixup: wrap vim installers with functions X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=commitdiff_plain;h=797ea8983bd3578b7bb5ac2e042e781486364f2f fixup: wrap vim installers with functions --- diff --git a/vim-go/install.sh b/vim-go/install.sh index 39d69df..96e48fb 100644 --- a/vim-go/install.sh +++ b/vim-go/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -{ +function __init_vim_go() { set -e set -u @@ -74,3 +74,5 @@ echo 'Running :GoInstallBinaries in vim ...' printf ':GoInstallBinaries\n:q\n' | vim -e } + +__init_vim_go diff --git a/vim-sensible/install.sh b/vim-sensible/install.sh index 0fbfdfb..50a84ed 100644 --- a/vim-sensible/install.sh +++ b/vim-sensible/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -{ +function __init_vim_sensible() { set -e set -u @@ -8,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 diff --git a/vim-syntastic/install.sh b/vim-syntastic/install.sh index 374beb7..d0d23c0 100644 --- a/vim-syntastic/install.sh +++ b/vim-syntastic/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -{ +function __init_vim_syntastic() { set -e set -u @@ -8,3 +8,5 @@ rm -rf "$HOME/.vim/pack/plugins/start/vim-syntastic" git clone --depth=1 https://github.com/vim-syntastic/syntastic.git "$HOME/.vim/pack/plugins/start/vim-syntastic" } + +__init_vim_syntastic