vim key mappings for php/symfony
I’ve recently added these key mappings to my .vimrc file:
map <C-t> :!php -l %<CR>
this checks php syntax of the currently edited file after hitting CTRL-t.
map <F9> :!php ./%<CR>
press F9 to run your php script.
map <C-s> :!d=`pwd`; until [ -f symfony ] ; do if [ `pwd` = "/" ] ;\ then exit ; fi ; cd ../; done; symfony cc; cd $d<CR>
this may be useful when working with symfony projects. After making some changes in your symfony project you have to clear cache if you want to preview them in your browser. This maps CTRL-s with “symfony cc” command. You can run it from any subdirectory of your symfony project.
February 10th, 2008 at 11:26 pm
[...] vim key mappings for php/symfony [...]
February 17th, 2008 at 7:10 pm
[...] vim key mappings for php/symfony [...]