On Sat, Oct 15, 2011 at 2:35 PM, Christian J. Robinson <[email protected]> wrote: > On Sat, 15 Oct 2011, Donald Allen wrote: > >> The 'n' command seems to search for '1' if used without any previous >> search. This strikes me as odd behavior, perhaps a bug? Both nvi and elvis >> produce error messages ('No previous search') in the same circumstance. > > I cannot reproduce this: > > % vim -u NONE -U NONE -i NONE > > (This starts vim with no vimrc/gvimrc/viminfo files.) > > Pressing "n" results in: > > E35: No previous regular expression > > Which is what I'd expect. > > I get the same behavior even if I add -N to the command line, which sets > nocompatible.
Try it with .vimrc like so: set incsearch set nocp I think the cause is the 'set incsearch'. I'm running 7.3.337 on a 64-bit Slackware 13.37 system. /Don > > - Christian > > -- > Whenever you find that you are on the side of the majority, it is time to > reform. -- Mark Twain > Christian J. Robinson <[email protected]> > http://christianrobinson.name/ > > -- > 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 > -- 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
