On 15/04/09 11:24, Matt Wozniski wrote:
>
> On Wed, Apr 15, 2009 at 4:16 AM, Tony Mechelynck wrote:
>>
>> On 15/04/09 10:00, Andy Wokula wrote:
>>>
>>> Tony Mechelynck schrieb:
>>>> On 12/04/09 21:29, Matt Wozniski wrote:
>>>>> On Sun, Apr 12, 2009 at 2:15 PM, Tony Mechelynck wrote:
>>>>>> On 12/04/09 14:10, Dennis Benzinger wrote:
>>>>>>> Hi!
>>>>>>>
>>>>>>> How can I check if there is no search highlighting because of
>>>>>>> :nohlsearch opposed to :set nohlsearch ?
>>>>>>>
>>>>>> I don't think you can. However you can turn it back on by using e.g.
>>>>>>
>>>>> No, but IIRC,
>>>>>
>>>>> :let @/ = @/
>>>>>
>>>>> should do the trick as well.
>>>>
>>>> I tried it before sending that post, and it doesn't.
>>>>
>>> The usual way is
>>>       :let&hls =&hls
>>
>> Tt, tt. As has already been said, the OP didn't want to know whether the
>> 'hlsearch' _option_ had been set or cleared, but whether the
>> :noh[lsearch] _command_ had been used since the latest search. The
>> command has no effect when the option is unset, but otherwise they are
>> different things.
>
> Er, right... but Andy didn't reply to the OP, he replied to you (and
> I) about how to turn back on highlighting after a :nohl
>
> ~Matt

ah, sorry. I didn't know that ":let &hls = &hls" would restore the 
highlighting if 'hls' was on.

Best regards,
Tony.
-- 
Waiter: "Tea or coffee, gentlemen?"
1st customer: "I'll have tea."
2nd customer: "Me, too -- and be sure the glass is clean!"
        (Waiter exits, returns)
Waiter: "Two teas.  Which one asked for the clean glass?"

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

Reply via email to