diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-03-16 14:18:16 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-03-16 14:18:16 +0100 |
commit | 50b9d96aea76d458625e7d874055bf30780e4a73 (patch) | |
tree | a159861fc5bed16e3ef9da5aea0c6c48ecf3dd57 /bash | |
parent | c47c4c982c41d3c28c061ec602181502065d3fdf (diff) | |
download | dotfiles-50b9d96aea76d458625e7d874055bf30780e4a73.tar.gz |
vim install plugins
Diffstat (limited to 'bash')
-rw-r--r-- | bash/vim-plugins.bash | 15 |
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 |