Forward to list. Best regards, Tony.
-------- Original Message -------- Subject: Re: No Previous Regular expression Date: Wed, 30 May 2007 20:02:36 -0700 From: [EMAIL PROTECTED] To: A.J.Mechelynck <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Quoting "A.J.Mechelynck" <[EMAIL PROTECTED]>:
Tim Johnson wrote: > Using vim 7.0 on kubuntu 7.04 (feisty fawn amd 64) > > I've recently migrated from vim 6-something on slack 10.0 > On my previous version and box, if I searched on an expression > in one file, closed it and opened another, "n" would continue > with the search. > > Now, I get an "E35: No previous regular expression". > > I've imported all of my previous settings, .vimrc etc... > so I don't know how to correct this.
[snip]
If you close and reopen Vim, the last search pattern is remembered -- or not -- in the viminfo file. (It is one of the "registers".) [snip]
I suspect that you edited a system file for your settings instead of a $HOME/.vimrc (or %HOME%\vimfiles). Vim system files are under vim6x/... and are provided by the vim installation process. When you upgraded to vim7.0 (the latest is vim7.1, BTW) any customizations you did under vim6x/ are no longer effective. Try: vim :echo $HOME to see where your home directory is... and edit a .vimrc file there. Put set nocp if version >= 600 filetype plugin indent on endif set viminfo=!,'10,\"100,:20,%,nc:\\WINDOWSPATHHERE\\_viminfo or set viminfo=!,'25,\"100,:20,%,n~/.viminfo (latter setting for linux/unix). And, while I'm at it, here's a snippet to restore cursor position: " Restore position in file: if previously edited (uses viminfo) {{{1 " David Fishburn mod: use zv to open folds on current line, but after having read the modelines. augroup RestorePosition au! au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe "norm g`\""|else|exe "norm $"|endif|endif au BufWinEnter * norm! zv augroup END HTH, Chip Campbell