# arg 1: the new package version post_install() { echo '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%' echo '% Set the following lines in your ~/.nvimrc or the systemwide /etc/nvimrc:' echo '% filetype plugin indent on' echo '% set grepprg=grep\ -nH\ $*' echo '% let g:tex_flavor = "latex"' echo '% ' echo '% Also, this installs to /usr/share/vim/vimfiles, which may not be in' echo '% your runtime path (RTP). Be sure to add it too, e.g:' echo '% set runtimepath=~/.nvim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.nvim/after' echo '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%' # rebuild the vim documentation tags nvim -e -s -c 'helptags /usr/share/vim/vimfiles/doc/' -c quit } # arg 1: the new package version # arg 2: the old package version post_upgrade() { /bin/true } # arg 1: the old package version post_remove() { /bin/true } op=$1 shift $op $*