Created
January 5, 2013 17:56
-
-
Save wlue/4462765 to your computer and use it in GitHub Desktop.
vim script that auto-indents and removes trailing whitespace. I used this to convert Obj-C projects from indents to spaces.
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
:set ts|retab " retab the whole file with magic | |
:%s/\v^\ +$// " remove whitespace in newline | |
:wq! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment