On 9/14/06, Gundala Viswanath <[EMAIL PROTECTED]> wrote:
> I'm afraid only vim internal indenter can be used for partial(block) tidying.
>

How do you do that Yakov?  I believe your earlier suggestion

gg=G

doesn't do partial right?

There are several methods. One was shown by Charles Campbell in
5th email of this thread: use visual selection:

        (1) press V at the 1st line of the block
        (2) press arrow down until you are at last line of the block
        (3) press =

Another method is to go to 1st line of the block and use counter
        =3j
reformats 3 lines

Another method is to go to last line of the block and use counter
        =3k
If you marked beginning and end of the block with ma and mb ('a and 'b),
then you can reformat block using
      'aV'b=

Legend:
     'a  go to beginning of the block
     V  turn of linewise visual selection
     'b go to end of the block
     =  reformat visual block

Yakov

Reply via email to