/usr/share/doc/vile-common/examples/vile-pager is in vile-common 9.8q-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 32 | #!/bin/sh
# $Header: /usr/build/vile/vile/macros/RCS/vile-pager,v 1.6 2008/12/05 00:03:03 tom Exp $
# This is a simple script that uses the vi-clone 'vile' as a pager to show
# highlighted text. It's a lot easier to work with large listings than 'more'
# or 'less'
# - T.Dickey
PROG=vile
OPTS=
TMP=${TMPDIR-/tmp}/rc$$
trap "rm -f $TMP" 0 1 2 5 15
cat >$TMP <<'EOF'
set glob=on
~force source &pcat ~ &default '$startup-file'
set nopopup-msgs
store-procedure OnRead
setl noview
1 goto-line
filter-til end-of-file "vile-manfilt"
attribute-cntl_a-sequences-til end-of-file
unmark
setl view
1 goto-line
setv $buffer-hook ""
~endm
setv $buffer-hook "OnRead"
EOF
case $PROG in
x*)
OPTS="+fork"
;;
esac
cat $* | $PROG $OPTS @$TMP
|