From: Vince N. <vin...@gm...> - 2006-03-23 08:34:22
|
> > What's the easiest way to untabify all the existing files? Is there an= y > > way to do this on commit, at the SourceForge side? > > With vim you can > > :set expandtabs > > I think. Something like that. I recall trying to do this to lilypondio.= cpp > and changing all the tabs to spaces, and bringing about holy wrath in as = a > result. Putting my Vim guru hat on for a moment, here are the mystic incantations required to fix up files without upsetting the indenting. If you have a file that uses 4 spaces per indent level, but 8 spaces per ta= b (in vim this is ts=3D8 sts=3D4 shiftwidth=3D4) Then you do the following: :set ts=3D8 sts=3D4 shiftwidth=3D4 (tell vim about current file structure) :set expandtab (you want to use spaces for tabs from now on) :retab (note the pling - redo all the SOL whitespace to conform to the new sett= ings) :wq (save changes) You could use the ability of vim to run in batch mode to automate this. |