On Sun, 2005-03-06 at 22:25 -0700, Matt Alexander wrote:
> Craig White wrote:
>
> >IANAP (I am not a programmer) ;-)
> >
> >but I have been impersonating one lately...
> >
> >I submitted code to horde project and one thing they objected to was
> >using tabs for indents instead of spaces. I now know how to create
> >unified diffs, diffs against cvs and this all is a learning process for
> >me.
> >
> >Language is php
> >
> >Editor is emacs
> >
> >It seems that there are times when tabs are automatically converted into
> >space indentations and sometimes they aren't.
> >
> >Is there a method to convert all the tabs to spaces?
> >
> >
> >
> >
> tr '\t' ' ' < tabfile.txt > spacefile.txt
----
I was looking for 'in emacs' experience. ;-) but for desparate times, I
can see where this is handy.
----
> Or, in vim... ;-)
> :%s/\t/ /g
----
more proof why I don't want to use vim - no cheat sheet could ever
contain these things.
;-)
Craig
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss