Thursday, April 26, 2007

Fix indentation in VIM

Often times, i get which has the indentation completely messed up, not just mixing tab/spaces, but really "whack"

these commands seem to magically fix for at least 2 test cases:

:set filetype=xml
:filetype indent on
:e
gg=G

No comments: