Created
July 26, 2022 19:49
-
-
Save avrahamappel/1599de0949c9db930bbe7f08f7b4afb0 to your computer and use it in GitHub Desktop.
Some vim macros for PHP
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
# Boilerplate for PHP class | |
let @p='i%dawO<?" | |
onamespaceJ:s~Äku | |
/wdf\....~AÄkb {}F\s; | |
class ' | |
# Turn a test name comment into a snake-cased class method (PHPUnit) | |
let @t=':s#[^/ ]\zs #_#g | |
^ciwpublic functionA()o{ | |
} /' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The CTRL sequences are still there, but the ENTERs turned into newlines