Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge
Here is my solution for using vim + script as a pager; similar
mechanisms can be used to use plain vim as PAGER as well.
| # Shell script to start Vim with less.vim.
| # Read stdin if no arguments were given.
| if test $# = 0; then
| vim -c "so $VRUNTIME/macros/less.vim" -
| vim -c "so $VRUNTIME/macros/less.vim" "$@"
I take no credit for the vim script or the idea, but it seems
to work pretty well. Note how the vim invocation changes based on
whether the PAGER is being used as a filter or not.
"When in doubt, use brute force." Ken Thompson
Manoj Srivastava <firstname.lastname@example.org> <http://www.debian.org/%7Esrivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C