home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vile-src.zip / vile-8.1 / macros / vile-pager < prev   
Text File  |  1995-12-27  |  530b  |  24 lines

  1. #!/bin/sh
  2. # This is a simple script that uses the vi-clone 'vile' as a pager to show
  3. # highlighted text.  It's a lot easier to work with large listings than 'more'
  4. # or 'less'
  5. # - T.Dickey (dickey@clark.net)
  6. TMP=/tmp/rc$$
  7. trap "rm -f $TMP" 0 1 2 5 15
  8. cat >$TMP <<EOF/
  9. set glob=on
  10. source ~/.vilerc
  11. set nopopup-msgs
  12. store-procedure OnRead
  13.     setl noview
  14.     1 goto-line
  15.     attribute-cntl_a-sequences-til end-of-file
  16.     unmark
  17.     setl view
  18.     1 goto-line
  19.     setv \$buffer-hook ""
  20. ~endm
  21. setv \$buffer-hook "OnRead"
  22. EOF/
  23. vile-manfilt $* | vile @$TMP
  24.