> 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.

This sort of thing can often be easily done in one pass with a
":g" command...something like

   :.,$g/<\/tbody>/.,/<tbody/d

which will delete lines from "</tbody>" to "<tbody" from the
current line (".") through the end of the file ("$").  If there
are a whole bunch of 'em, this often makes fast work of them.

Just a few more ways to look at your editing and hopefully make
you even more productive :)

-tim



Reply via email to