aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-03-16 14:18:16 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-03-16 14:18:16 +0100
commit50b9d96aea76d458625e7d874055bf30780e4a73 (patch)
treea159861fc5bed16e3ef9da5aea0c6c48ecf3dd57 /bash
parentc47c4c982c41d3c28c061ec602181502065d3fdf (diff)
downloaddotfiles-50b9d96aea76d458625e7d874055bf30780e4a73.tar.gz
vim install plugins
Diffstat (limited to 'bash')
-rw-r--r--bash/vim-plugins.bash15
1 files changed, 15 insertions, 0 deletions
diff --git a/bash/vim-plugins.bash b/bash/vim-plugins.bash
index 688d918..53c927d 100644
--- a/bash/vim-plugins.bash
+++ b/bash/vim-plugins.bash
@@ -24,6 +24,21 @@ function vim-remove {
rm "$DOTFILEBASE/.vim/bundle-active/$NAME"
}
+# 1: git clone url
+function vim-install {
+ source ~/.files
+
+ test $# -eq 1 || exit 1
+
+ echo "Installing $1"
+
+ (
+ cd "$DOTFILEBASE/.vim/bundle" || exit 1
+ git submodule add "$1" || exit 2
+ git commit -m "Added vim plugin module $1"
+ )
+}
+
function _vim_plugins {
source ~/.files
local cur prev opts plugin