update_tags() { echo -n "Updating vim help tags... " /usr/bin/vim --noplugins -u NONE -U NONE \ --cmd ":helptags /usr/share/vim/vimfiles/doc" \ --cmd ":q" > /dev/null 2>&1 echo "done." } post_install() { update_tags echo echo '-> To run type "vim -c NotMuch"' } post_upgrade() { update_tags } post_remove() { update_tags }