myshellconfig/bin/vim-plugins-install

13 lines
416 B
Bash
Executable file

#!/bin/bash
grep -v "^\"" vimplugins |while read cmd type url;do
case $cmd in
install)
git submodule add $url vim/pack/${type}/start/$(basename ${url%.git})
vim -es -c ":helptags vim/pack/${type}/start/$(basename ${url%.git})" -c ":q!" -
;;
remove)
git submodule-remove vim/pack/${type}/start/$(basename ${url%.git})
;;
esac
done