fixup: wrap vim installers with functions
authorAJ ONeal <aj@therootcompany.com>
Mon, 22 Mar 2021 05:30:41 +0000 (05:30 +0000)
committerAJ ONeal <aj@therootcompany.com>
Mon, 22 Mar 2021 05:52:50 +0000 (05:52 +0000)
vim-go/install.sh
vim-sensible/install.sh
vim-syntastic/install.sh

index 39d69dfd693b6063369e2c6827b21638893de42d..96e48fb6e44bb624d902e889cd69f63d129b1177 100644 (file)
@@ -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
index 0fbfdfb3b97024d0ccb045e614e5dba861fc4495..50a84edf4a7f21df649ee7851a283233a1d432d1 100644 (file)
@@ -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
index 374beb72ea94b7da58bc597e732a01faf3008d9d..d0d23c046443b3d96056f134013786625496a352 100644 (file)
@@ -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