Sunday, December 27, 2009

Re: start search at current line, wrap around?

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

You can also use "*" as the range:

:*s/foo/bar/g

assuming you have the default 'cpoptions' set:

:help cpo-star

It's the only place in the help I've seen it documented, but I use it
enough that others might find it handy.

-tim

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

No comments:

Post a Comment