Created
January 5, 2010 03:26
-
-
Save cloudhead/269120 to your computer and use it in GitHub Desktop.
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
" .vimrc | |
" How to pwn javascript's syntax without anyone ever knowing: | |
" substitutes `function` with `->` on file load, and reverses it on write. | |
autocmd BufRead,BufWritePost *.js silent %s/function/->/ | |
autocmd BufWritePre *.js silent %s/->/function/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment