Sunday, December 27, 2009

Re: start search at current line, wrap around?

Dennis German wrote:
> I am not sure that this is what you meant, but
> I would like to perform multiple substitutions for the same range,
> but not that I know of ahead of times
>
> example
>
> <table>
> <tr><td> xxx
> <tr><td> yyy
> </table>
>
> with cursor on the <table>
> :.,/\/table/-1 s /td>/td align=center>
>
> This leaves cursor at the /table
>
> Now I want to add valign=top across the same range (not the next table!)

'gv' will recall the last 'visual' range
The when you type ':' the range will be inserted.
Is that what you are looking for?

:help gv

--
Bill
Santa Cruz, California

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment