Saturday, December 26, 2009

start search at current line, wrap around?

:.,$s/search/replace/gc

Will start searching at the current line,
but continue only to the end of file.

How to wrap the search back around to the current line?

I know the following starts at the beginning of the file and seaches
thru to the end of file.

:%s/search/replace/gc

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

No comments: