Skip to content

Instantly share code, notes, and snippets.

@marcw
Created March 31, 2011 13:59
Show Gist options
  • Save marcw/896391 to your computer and use it in GitHub Desktop.
Save marcw/896391 to your computer and use it in GitHub Desktop.
Insert the namespace in current php file
" Insert current namespace and opens php and create empty class, based on the file name
" last edited by https://www.github.com/ornicar
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