POSTIN
/bin/sh
umask 022
[ ! -x /usr/bin/update-mime-database ] \
|| update-mime-database /usr/share/mime >/dev/null 2>&1 ||:
cd /usr/share/vim/vimfiles/doc
vim -u NONE -esX -c "helptags ." -c quit
grep -q "filetype plugin on" /etc/vimrc \
|| echo -e "\nfiletype plugin on" >>/etc/vimrc
POSTUN
/bin/sh
if [ $1 -eq 0 ]; then
umask 022
[ ! -x /usr/bin/update-mime-database ] \
|| update-mime-database /usr/share/mime >/dev/null 2>&1 ||:
cd /usr/share/vim/vimfiles/doc
vim -u NONE -esX -c "helptags ." -c quit
fi