hey all, this is kind of off-topic, but i figured this is the community most likley to have dealt with this sort of thing in the past, and be opinionated about it.
i've been editing a lot of code over the past few months that was originally saved to disk with hard tabs for indenting. i can't work with hard tabs, and so managed to reformat the entire thing to use spaces (basically a "s,^I, ," iirc) before i began my massive overhaul of this file. now it's time to check it into CVS. i don't want every single line to show up as different just because of tab characters, so i need to find a good solution on how to transform my indents back into tab characters. clearly the reverse -- "s, ,^I," -- won't just work, as there are places where two spaces exist that i wouldn't want a tab. is there some way to open the file in emacs (in which i assumer it was originally written; i use vim) and run it through a re-indentder with hard tabs on? or could i do this in vim? suggestions & opinions welcome. thanks a lot, </nori> -- .~. nori @ sccs.swarthmore.edu /V\ http://www.sccs.swarthmore.edu/~nori/jnl/ // \\ @ maenad.net /( )\ www.maenad.net ^`~'^ get my (*new*) key here: http://www.maenad.net/geek/gpg/7ede5499.asc (please *remove* old key 11e031f1!)
pgp00000.pgp
Description: PGP signature