Quantcast
Channel: Comfortable PHP editing with VIM -3-
Viewing all articles
Browse latest Browse all 37

Sam Rowe at Sat, 21 May 2005 22:40:30 +0200

$
0
0
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..

Viewing all articles
Browse latest Browse all 37

Trending Articles