Skip to content

Instantly share code, notes, and snippets.

@spelcaster
Created July 31, 2017 15:28
Show Gist options
  • Save spelcaster/84275e15356040ed61cf0337f505c2cf to your computer and use it in GitHub Desktop.
Save spelcaster/84275e15356040ed61cf0337f505c2cf to your computer and use it in GitHub Desktop.
Generate helptags for plugins under `bundle` directory
#!/bin/bash
echo "Generating helptags"
echo
while IFS= read -r -d $'\0' docDir <&3; do
echo "Generating helptags for '$docDir'..."
vim -u NONE -c "helptags $docDir" -c q
echo "[${?}] helptags for '$docDir' generated"
echo
done 3< <(find bundle -iname "*doc" -type d -print0)
echo "Done..."