Joined March 2015
·

Greg

Australia
·
·

Posted to Lookup pydoc using Vim keywordprg over 1 year ago

Maybe things would work better from GVim if you used vim as a pager:

export PAGER="/bin/sh -c \"unset PAGER;col -b -x | \
vim -R -c 'set ft=man nomod nolist' -c 'map q :q<CR>' \
-c 'map <SPACE> <C-D>' -c 'map b <C-U>' \
-c 'nmap K :Man <C-R>=expand(\\"<cword>\\")<CR><CR>' -\""

This incantation turns all man pages into Vim editing sessions. Say goodbye to less!

Achievements
1 Karma
0 Total ProTip Views