--
David
> --
> You received this message from the "vim_mac" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
Another similar approach (and what I usually use) is with marks; set
a mark at one end of the range, then maneuver to the other end of the
range and set another mark (e.g. I'll often mark the top line using
"ma" and the bottom line with "mb"), then use:
:'a,'bs/foo/bar/g
I suppose it's more keystrokes than using "v" for visual mode, but it
has worked since long before Vim arrived on the scene, and it isn't
subject to the changes in behavior depending on various options that
this thread seems to be finding. See ":help mark-motions" for more.
Cheers,
Carl