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