On Mar 25, 1:31 pm, [email protected] wrote:
> Hi,
>
> sorry for the diffuse subject ... I simply dont know how to
> name the "problem" I have in the length of a subject line:
> I a function I a search (":/") at the last step.
> :
> But regardless how intense I define 'set hlsearch' --
> when the function returns, the matches marked via hlsearch
> are gone.
>
> I think this may be the result of some screen redrawing
> done after the function has ended...but how can I
> supress it?
>
> I experimented with 'silent' with no success...
>
> How can I preserved the match highlightning in this case?
>
> Thank you very much for any highlighter ! :)
>

You can try setting the "last search" register in the function:

:let @/='your pattern'

-- 
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