aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-11-16 14:11:57 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-11-16 14:11:57 +0100
commit1cc406ce8bd6c2123eb390598d2bca4e217e5b29 (patch)
treebad99e4b7286710a660dbf3a7e596a187fd2e7a3
parent10535aa2988408ddba174f46cbc4acb432fa2b9b (diff)
downloaddotfiles-1cc406ce8bd6c2123eb390598d2bca4e217e5b29.tar.gz
vim plugins manager
-rw-r--r--bash/vim-plugins.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/vim-plugins.bash b/bash/vim-plugins.bash
index 1b8d7c6..688d918 100644
--- a/bash/vim-plugins.bash
+++ b/bash/vim-plugins.bash
@@ -3,6 +3,7 @@ function vim-add() {
local NAME=$(basename "$1")
+ [ -d "$DOTFILEBASE/.vim/bundle-active" ] || mkdir "$DOTFILEBASE/.vim/bundle-active"
[ -d "$DOTFILEBASE/.vim/bundle/$NAME" ] || return 1 # no such plugin
[ -L "$DOTFILEBASE/.vim/bundle-active/$NAME" ] && return 2 # Already exists