Created
April 11, 2012 09:54
-
-
Save juhasz/2358317 to your computer and use it in GitHub Desktop.
VIM: split and align SQL queries - a quick way
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
s/, /,\r / | '{,.s/ FROM/\rFROM/ | '{,'}s/ JOIN/\r JOIN/ | s/ WHERE/\rWHERE/ | s/ AND/\r AND/ | '{,'}s/ ORDER/\rORDER/ | '{,'}s/ LIMIT/\rLIMIT/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment