Skip to content

Instantly share code, notes, and snippets.

@ysawa
Created November 4, 2011 02:44
Show Gist options
  • Save ysawa/1338548 to your computer and use it in GitHub Desktop.
Save ysawa/1338548 to your computer and use it in GitHub Desktop.
PHPAbbreviation: abbreviate php syntax
function! PHPAbbreviation()
:%s/<?\(\s\+\|php\s\+\)echo\s\+\(.*\)\s*;\s*?>/<?= \2; ?>/ge
endfunction
command! PHPAbbreviation :call PHPAbbreviation()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment