summaryrefslogtreecommitdiffstats
path: root/bin/vimmanpager
blob: d33e4f97dd84f63ac66987cb6fefc0aa091c48cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -eu
set -o pipefail

sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \
                vim \
                        -c 'let no_plugin_maps = 1' \
                        -c 'let g:rainbow_active = 0' \
                        -c 'let g:airline#extensions#whitespace#checks = []' \
                        -c "if exists('\$MAN_PN') | file \$MAN_PN | endif" \
                        -c 'setlocal nolist nomod noswf ft=man' \
                        -c 'runtime! macros/less.vim' \
                        -c 'set ma' \
                        -c 'setlocal noma' \
                        -