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
