Afton Lewis wrote:
How would I search for a regex within a particular area? The text
document is very long, and I don't want to match all instances, just
those I care about. I would probably select the text visually.
With <vis.vim>, a plugin available from:
http://mysite.verizon.net/astronaut/vim/index.html#VIS
or a more stable version from:
http://vim.sourceforge.net/scripts/script.php?script_id=1195
you may use visual mode (either line, character, or block; ie. either
with V, v, or ctrl-v)
to select a region, then use
:S regexp
and the search will only pick up items in that region.
Regards,
Chip Campbell