Monday, July 19, 2010

Default search changed by search and replace

The behavior of the 'n' command appears to have recently changed. It
used to always repeat the last _search_. Now it appears to repeat the
search implied by the last _search and replace_, when there has been
an intervening search and replace since the last search.

This is extremely annoying. It is common to search for lines where you
need to do a search and replace and where what you are searching for
and what you are replacing is different.

I am not familiar with any vi derivative that has previously behaved
this way. Is there an option to make vim behave the way it used to?
Or would perhaps a patch to restore the old behavior be considered?

I am using vim 7.0.109 on Centos 5.5, by the way.

- Mark B.

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