Then do: q/
The word you just searched for (which is the current contents of the
search buffer - and will be highlighted onscreen [if you have hls set])
is *not* in the q/ display. It should be. It is also not in the
command line search history buffer.
Notes:
1) This is inconsistent - and hard to find. I've noticed it
off-and-on over the years, but couldn't nail it down. It seems
to be related to being the first search - new instance of the
program and/or new file.
2) Tested with Windows GVIM, version 7.0, 7 May 2006.
I can't reproduce this. Works as expected on my machine.
VIM 7.2.284 on Debian Testing/Unstable.
--
kasmra
:wq
Works fine for me with Windows GVIM 7.0, 7 May 2006. Maybe something in
your configuration?
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
It's tricky. You may to test more. It took me a long time to find a
way to replicate it - and for all I know, that method may not work
anymore.
I can reproduce it with
vim -u NONE --noplugin
or with
vim -i new-viminfo
but not otherwise. Could be that it just happens when you do a
*/# while the search history is empty. Looks like a bug to me.
If you don't want to use a .viminfo, it seems you can work
around it by adding a
let @/ = ''
in your ~/.vimrc
--
Stᅵphane
I think you've got it. I do not like the .viminfo concept, so I don't
use one (I use whatever option it is that turns it off).
So, yes, a bug. Thanks for confirming.
The bug has been fixed in Vim 7.2.321.
The relevant patch as posted by Bram Moolenaar can be found here:
http://groups.google.com/group/vim_dev/browse_frm/thread/7661e3c425c70a04
Thanks for reporting the problem.
--
Best regards,
Lech Lorens - lp.pw@snerol_hcel
Thanks!