summarylogtreecommitdiffstats
path: root/vim-latexsuite-git.install
blob: 8d6b924cc827dda154b6407eeef93c5bafc9c85f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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 $*