Hi!

Sometimes I want to move to a pattern without actually searching for it.
That is I don't want to destroy the last search pattern and I don't want
to change the hlsearch highlighting.

Is there a command for this?

If not, would something like the following work:

:let last_search_pattern = @/
:let last_hlsearch = &hlsearch
/new_pattern
:let @/ = last_search_pattern
:let &hlsearch = last_hlsearch


Dennis Benzinger

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to