Re: auto indentation
| From: | Paul M Foster | Date: | Wed, 28 Apr 2010 02:15:33 +0000 |
| Subject: | Re: auto indentation | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304689@lists.php.net to get a copy of this message | ||
On Tue, Apr 27, 2010 at 08:52:09PM -0500, Programming Guides wrote:
> On Tue, Apr 27, 2010 at 6:00 PM, D. Dante Lorenso <dante@lorenso.com> wrote:
>
> > On 4/27/2010 3:55 PM, Ashley Sheridan wrote:
> >
> >> On Tue, 2010-04-27 at 16:33 -0400, David McGlone wrote:
> >>
> >>> Hi everyone.
> >>> I got a quickie LOL
> >>> is there a way to auto indent code. I'm using Kate and I have it set so
> >>> the
> >>> tab is only 4 spaces, but I was wondering if there was an easier way than
> >>> to
> >>> have to hit the tab key 1x then 2x then 3x then 2x then 1x to create nice
> >>> laid
> >>> out code like this:
> >>>
> >>
<snip>
> vim ftw:
>
> 1. select the piece of code you want to indent (or select all with "ggVG")
> 2. Hit =
> 3. profit!
+1 for vim
I use a limited number of "g" commands, like gg, G and gwap, but I use
them rotely; I've never understood the variations. Can you point me to
some sort of tutorial on these?
Paul
--
Paul M. Foster