VIM already maps 'k' to "look up the word under the cursor with man." So if the filetype is PHP, I set keywordprg to w3m pointed at php's manual. I described it here: http://deadman.org/scripts/php_vars.vim
If you put that file in ~/.vim/ftplugin (and your version of Vim supports it) it should get automatically sourced whenever you're editing a php file.
Culley Harrelson also wrote a handy script for editing PHP in Vim that you can find on vim.org.
remapping ctrl-b is only useful if you don't use ctrl-f/ctrl-b for paging..
↧