mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-20 00:46:50 +00:00
fixup: wrap vim installers with functions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user