On Mar 7, 3:00 pm, Jacky Liu <[email protected]> wrote:
> The search commands executed indirectly through a key mapping or
> through a function call won't update the last_pattern_register "/ ,
> only the history table is updated.
>
> Here's the problem: the result is neither highlighted, nor can I use
> "n" and "N" to find the next match because these two commands also
> rely on the Last_pattern_register "/ . Interestingly, the history
> table is updated, but it seems that the only way to access it is to
> type /<Up>
> ^M manually.
>
I believe you could modify the functions in your mappings to also do
this:
let @/ = '{pattern}'
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---