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