11 ms·
Is it really that hard to search and replace a tab with four spaces? %s/\t/ /g should do it in Vim. Make it /gc if you have tabs in your code for some
by anthonyb 16y ago
Is it really that hard to search and replace a tab with four spaces?
%s/\t/ /g
should do it in Vim. Make it /gc if you have tabs in your code for some reason.
If it's really hacked up, then a source code beautifier might be a better bet:
http://www.google.com.au/search?q=python+source+code+beautifier http://www.google.com.au/search?q=python+source+code+beautif...
The alternative is to have wild, all over the place indenting in languages like PHP. Except that the code will still run, so nobody will fix it.