To use Vim as a pager for man I have
export MANPAGER="/usr/share/vim/vim73/macros/manpager.sh"
in my profile. Now man pages look very good with colors and stuff. However, when trying man ascii
as a way of looking at the ASCII table, I notice that the table is mis-aligned as in the screenshot below:
This problem doesn't happen to the default pager. When I set export MANPAGER="view -"
the table is also correct, so something must be wrong with the manpager.sh
script:
#!/bin/sh
sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \
vim \
-c 'let no_plugin_maps = 1' \
-c 'set nolist nomod ft=man' \
-c 'let g:showmarks_enable=0' \
-c 'runtime! macros/less.vim' -
How can I fix this?
C
oren_US
oren_US.UTF-8
locale, in xterm). What are your locale settings? In what terminal are you running this, and do other terminals make a difference? What is your version of Vim, what options was it compiled with? Does disabling your.vimrc
withvim -u /dev/null
make a difference?