On Oct 15, 2:43 pm, Donald Allen <[email protected]> wrote: > > Yes, disabling the viminfo stuff, which I was not aware of, eliminates this > behavior. I find it very odd that this is enabled by default. I think most > people think of different editing sessions as different editing sessions, > not a continuation of a previous session. > > But thank you for getting me straightened out about why this is occurring. >
The previous search being enabled by default can be a bit confusing, but looking at :help 'viminfo' you can see why: it's not really saving the last search, it's saving a search history! This means if you spend a long time coming up with a complicated regex, it will likely be there when you come back, just by pressing <Up> a few times on the search command-line. This feature is useful enough to be enabled by default, though you can disable it by adding a "/0" to your 'viminfo' option. -- You received this message from the "vim_dev" 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
