Skip to content

Instantly share code, notes, and snippets.

@ornicar
Forked from marcw/.vimrc
Created April 1, 2011 21:01
Show Gist options
  • Save ornicar/898849 to your computer and use it in GitHub Desktop.
Save ornicar/898849 to your computer and use it in GitHub Desktop.
" Insert current namespace and opens php and create empty class, based on the file name
nmap <F9> ggO<?php<CR><CR><ESC>"%PdF/r;:s#/#\\#g<CR>Inamespace <ESC>d/[A-Z]<CR>Goclass <C-R>=expand("%:t:r")<CR><CR>{<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment