Tuesday, April 27, 2010

A 'visible within the window' range?

So the % symbol is a special range that means 'the whole file'. Is
there a similar special symbol that means 'what is visible in the
window'?

For example, say I can see three instances of the word 'abracadabra'
on the screen. I want to change them to 'wizard' but don't want to
affect any other parts of the file. Is there a way to do this without
entering visual mode? If not, is there a way to select all visible
lines so that (in visual mode) I can do:

:*s/abracadabra/wizard/r

Duane

--
You received this message from the "vim_use" 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

No comments:

Post a Comment