Created
March 31, 2011 13:59
-
-
Save marcw/896391 to your computer and use it in GitHub Desktop.
Insert the namespace in current php file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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