Hi!

Am 15.04.2009 11:16, Andy Wokula schrieb:
> [...]
> The OP is very silent about the actual problem he wants to solve.
> This branch of the thread assumes (AIUI) he wants to turn highlighting
> back on after :noh .  And I just posted the well-known way how
> to do it and a slightly new one.
> 
> I don't know the answer to the OP's original problem.
> 
> @Dennis: what is the _actual_ problem you want to solve?
> [...]

My actual problem is what I wrote in my original post :-). I wanted to
know how I can check if :nohlsearch has been executed.

The reason for wanting to know this is that I have been looking for a
way to "Move to a pattern without destroying the last search pattern?"
in another post some minutes before I wrote the original post in this
thread. In this other post I also wrote some vimscript which (almost)
does that. Some minutes after I wrote that post it occurred to me that I
forgot to restore the search highlighting. But to do this properly I
would need to know if :nohlsearch has been executed so that I could
execute it again after the search. The problem of the "Move to a pattern
without destroying the last search pattern?" thread has been solved in
the meantime. Maxim Kim pointed out that I can use :call search('pattern').

But nevertheless I'm still curious if it is possible to check if
:hlsearch has been executed. If it's not possible than I think that
should be added to Vim. Vimscript should be able to query every part of
vim's state that is settable with vimscript.


Thanks for all your answers,
Dennis Benzinger

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

Reply via email to