From 50b9d96aea76d458625e7d874055bf30780e4a73 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 16 Mar 2022 14:18:16 +0100 Subject: vim install plugins --- bash/vim-plugins.bash | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'bash') 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 -- cgit v1.2.3