>If you know you want to operate on teh same visual block and move it in
the
>same direction.. you could just repeat the operation with .  Otherwise,
you can
>reselect the visual are with gv to move it in the other direction

Yeh, the tips from you, Tim. and Alan, are all gonna come in handy.

I've just been so used to the "normal" way of marking blocks of text and
then doing stuff like

        :'m,'ns/^/^I/

and doing the shift that way.  Haven't done much in visual mode, and
have only just recently gotten started with that.  Eg, when deleting
whole blocks of the same repetitive code (eg, consolidating multiple
tables into just one big-ass table, and just need to delete the
end-table from table N, and the begin-table for table N+1), I'll
visually select the text to be deleted, note the status line that says
something like "13 lines deleted", then find the next "</tbody>", do a
'13dd', then 'n.n.n.n.n.', etc., 'til I'm done.

Only really used visual mode for block deletes/copies/moves, so this
should come in handy.

Reply via email to