myshellconfig/bin/vim-plugins-install

15 lines
511 B
Text
Raw Permalink 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})
2020-10-30 23:47:43 +01:00
#vim -es -c ":helptags vim/pack/${type}/start/$(basename ${url%.git})" -c ":q!" -
#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