Created
May 5, 2011 14:35
-
-
Save marcw/957148 to your computer and use it in GitHub Desktop.
Steal the namespace + class in a file.
This file contains hidden or 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
noremap <C-F9> gg/^namespace /e<CR>l"nyt;f\"Ny /^class /e<CR>l"Nye<ESC> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It will put in the 'n' register the namespace of the file with the name of the class.
It works well with Symfony2 coding standards.
With this class, your 'n' register will contain Foo\Bar\Panda