Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (18 sloc) 706 Bytes
# Aldis Berjoza wrote this file. As long as you retain this
# notice you can do whatever you want with this stuff. If we meet some
# day, and you think this stuff is worth it, you can buy me a beer in
# return. <>
echo "Searching for doc directories"
find ${1:-"$HOME/.vim/"} -type d -name doc | while read DOCDIR; do
# & at the end is needed, otherwise VIM will only update first directory
# something weird...
echo "Starting updating $DOCDIR"
vim "+helptags $DOCDIR" "+q" > /dev/null 2> /dev/null &
while ps ax | grep "vim +helptags" | grep -v grep > /dev/null; do
# Wait for all vims to die
sleep 1
echo "Tags updated"