vim question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bart Garst
Date:  
Subject: vim question
On Tue, 2003-10-14 at 15:12, Kevin Buettner wrote:
> On Oct 14, 1:16pm, Bart Garst wrote:
>
> > Is there a way to automatically 'fix' tabs?
>
> I think this is a different question than the one you're asking below.


You're right, I probably should have said indent.

>
> > My problem is I have a function I'm modifying (C++), I need to wrap some
> > code in an if statement. Once I add the if and it's braces the following
> > lines need to be indented.
>
> Use the '>' operator for this. E.g. >> will right-shift one line by
> the shiftwidth amount (which may be different than the tabstop
> amount). >L will shift all the lines to the bottom of the screen, >'h
> will shift all lines from the current position to the mark named "h",
> etc.
>


The >'h is what I was looking for. Thanks

Bart