diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-03-19 22:30:14 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@server-speed.net> | 2011-03-19 22:30:14 +0100 |
commit | f0c9b542a8ba97cc16aa3c80ab323d4444ce16f9 (patch) | |
tree | cd3a631a0152324f4573d53793e8af407902e717 | |
parent | d03e3bf931e3203f159872a4d79526782055e681 (diff) | |
download | bin-f0c9b542a8ba97cc16aa3c80ab323d4444ce16f9.tar.gz bin-f0c9b542a8ba97cc16aa3c80ab323d4444ce16f9.tar.xz |
vimpager: never add numbers for manpage
They break line endings for long manpages
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rwxr-xr-x | vimpager | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ if do_ps | grep -q '\(py\(thon\|doc\)\|man\|perl\(doc\)\?\([0-9.]*\)\?\)\>'; the proc=$$ while next_parent=`ppid $proc` && [ $next_parent != 1 ]; do if pproc $next_parent | grep -q 'man\>'; then - cat $file | sed -e 's/\[[^m]*m//g; s/.//g' | less_vim -c 'set ft=man' -; exit + cat $file | sed -e 's/\[[^m]*m//g; s/.//g' | less_vim -c 'set ft=man' -c "set nonumber" -; exit elif pproc $next_parent | grep -q 'py\(thon\|doc\)\>'; then cat $file | sed -e 's/\[[^m]*m//g; s/.//g' | less_vim -c 'set ft=man' -; exit elif pproc $next_parent | grep -q 'perl\(doc\)\?\([0-9.]*\)\?\>'; then |