Warning: array_keys() [
function.array-keys]: The first argument should be an array in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
1827
Warning: Invalid argument supplied for foreach() in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
1827
Warning: Invalid argument supplied for foreach() in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
2180
Warning: Invalid argument supplied for foreach() in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
3025
Warning: implode() [
function.implode]: Argument to implode must be an array. in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
3077
Warning: array_keys() [
function.array-keys]: The first argument should be an array in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
3108
Warning: Invalid argument supplied for foreach() in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
3108
Warning: array_keys() [
function.array-keys]: The first argument should be an array in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
3151
Warning: Invalid argument supplied for foreach() in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
3151
Warning: array_keys() [
function.array-keys]: The first argument should be an array in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
3292
Warning: Invalid argument supplied for foreach() in
/var/www/html/site/wp-content/plugins/wp-syntax/geshi/geshi.php on line
3292
Sure, why not :)
This goes in your zshrc:
vman() {
if [ $# -eq 0 ]; then
/usr/bin/man
else
if man -w $* >/dev/null 2>/dev/null
then
/usr/bin/man $* | col -b | vim -c 'set ft=man nomod' -
else
echo No man page for $*
fi
fi
}
alias man='vman'
And this goes in your vimrc (in a suitable augroup):
autocmd FileType man setlocal ro nonumber nolist fdm=indent fdn=2 sw=4 foldlevel=2 | nmap q :quit<CR>
Now you’ll get nicely highlighted man pages with folded sections, and you can hit q to quit just like less.
