myshellconfig/bin/vim-plugins-install

15 lines
509 B
Text
Raw Normal View History

2020-10-30 01:10:33 +01:00
#!/bin/bash
grep -v "^\"" vimplugins |while read cmd type url;do
case $cmd in
install)
2020-10-30 01:47:04 +01:00
git submodule add $url vim/pack/${type}/start/$(basename ${url%.git})
vim -es -c ":helptags vim/pack/${type}/start/$(basename ${url%.git})" -c ":q!" -
2020-10-30 12:58:33 +01:00
git -C vim/pack/${type}/start/$(basename ${url%.git}) commit . -m "add helptags"
2020-10-30 01:10:33 +01:00
;;
remove)
2020-10-30 01:47:04 +01:00
git submodule-remove vim/pack/${type}/start/$(basename ${url%.git})
2020-10-30 01:10:33 +01:00
;;
esac
done