Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 380 by [email protected]: v:hlsearch doesn't work when in a function.
https://code.google.com/p/vim/issues/detail?id=380

What steps will reproduce the problem?

1. create a function:

  function! X()
    let @/ = 'test'
    let v:hlsearch = 1
  endfunction

2. given that `set hlsearch` is set, call the function,

What is the expected output? What do you see instead?
Was expected that the words `test` get highlight on all buffers, but doesn't work.

PS.: If I execute those `let` commands, without a function, it works.

What version of the product are you using? On what operating system?

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 11 2015 14:26:15)
MacOS X (unix) version
Included patches: 1-728


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

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

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui