On Mar 10, 7:41 pm, John Little <[email protected]> wrote: > On Mar 11, 5:54 am, Ben Fritz <[email protected]> wrote: > > > /b/;?a > > > The cursor is now on the first 'a' character (in the 2nd line). > > > Now execute the same search again, using search command history (do > > NOT use 'n'). The cursor goes to the final 'a' character, on the next- > > to-last line. > > Not for me. It stays on the first a, as I expected it to. Vim > 7.3.138 and 7.2.330.
Oops, I thought I'd put in another step. After the first search, move the cursor down a line so the next result is supposed to be at the bottom. The intent of this was to demonstrate the expected behavior. > > But I see your point, n does not repeat the last search. It doesn't > even repeat the second search, which is backwards, rather it searches > forward, as the help says. > Yes, the help says n and N take their direction from th first search, I expected this. What I did not expect was the fact that the search was not repeated, but the offset was, only in the opposite direction. > I recall noticing this quirk years ago, and learning that n and N are > not reliable using //; > As a workaround I did a quick mapping like :nnore <F7> /<Up><CR> but I don't think this should be necessary. -- 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
