Actually, while looking through .viminfo to see if that was already set and I  
stumbled across this:
# hlsearch on (H) or off (h):
~H

I changed to a lowercase 'h' and now it seems that I can get on with my life. 

Thanks for the pointer though. 

--"My break-dancing days are over, but there's always the funky chicken"
The Full Monty

On Mar 14, 2011, at 4:45 PM, Christian Brabandt <[email protected]> wrote:

> Hi lazloman!
> 
> On Mo, 14 Mär 2011, lazloman wrote:
> 
>> After I do a search, the results remain highlighted. I've found I can
>> clear the results doing this:
>> :let @/ = ""
>> 
>> But, upon restarting vim those search results are again highlighted. I
>> found that using
>> :nohlsearch
>> in .vimrc prevents the old search results from being highlighted on
>> startup, but I have to undo that to have my search highlighting re-
>> enable.
>> Is there a way ensure that cleared search highlighting is cleared on
>> startup while still allowing a new search to highlight its results
> 
> That probably comes from the viminfo file. Try tweaking the setting of 
> 'viminfo' by explicitly not saving the search history, like this:
> 
> :set viminfo+=/0
> 
> Read the help at:
> :h viminfo
> :h 'viminfo'
> 
> regards,
> Christian
> 
> -- 
> You received this message from the "vim_use" 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_use" 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

Reply via email to