3 # Use vim for manpages and infopages.
4 # Requires vim 5+ and info.vim plugin.
7 vimmajor=$(vim --help 2>&1 | head -n 1 | sed 's/^VIM[^0-9]*\([0-9]*\)\..*/\1/')
10 vim -c "runtime ftplugin/man.vim" -c "Man ${1-man}" \
11 -c "set nolist noruler ls=0" +"wincmd o"
15 vim -c "Info ${1-info}" \
16 -c "set nolist noruler ls=0" +"wincmd o"
19 if [ ! -z "$vimmajor" -a $vimmajor -gt 4 ]; then