Version 7.3.600 on Windows 7 64bit
hlsearch on

File:
----
xxxx
yyyy
----

Command sequence 1
------------------
:noh
:let @/="xxxx"
:normal n

>>> highlights "xxxx"

Command sequence 2
------------------
:noh
:call X()

function X()
   let @/="xxxx"
   normal n
endfunction

>>> does not highlight "xxxx"

Can anyone confirm this behavior?

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui