update_helptags() { printf "Updating vim help tags..." vim -e -s -c "helptags /usr/share/vim/vimfiles/doc/" -c "quit" printf "done\n" } post_install() { update_helptags } post_upgrade() { update_helptags } post_remove() { update_helptags }