Last active
January 8, 2020 11:01
-
-
Save borissov/31259ccfe67a946887505b2555cbc7d0 to your computer and use it in GitHub Desktop.
Hot key to convert PHP Array to short syntax ([]) exclude build-in functions and work with multiple lines arrays
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
autocmd FileType php,phtml nmap <buffer><F6> /\%\([a-zA-Z0-9_]\)\@<!\(array\)\( \)*\((\)<CR>ma%r]`adwr[ | |
autocmd FileType php,phtml imap <buffer><F6> <Esc><F6>i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment