Monday, March 31, 2014

Re: "local hlsearch"



On Monday, March 31, 2014, <meino.cramer@gmx.de> wrote:
Hi,

I often use a search'n'replace on an area, which is
limited by a previously selected visual block.
Additional hlsearch is on by default.
After the searech'n'replace has ended, the found
places are marked all over the whole text.
This is often irritating to me.
Is there a way to limit the highlights set by hlsearch
to those place of the visual block area?

Thank you very much fo rnay help in advance!
Best regards,
mcc

This doesn't answer your question exactly, but that bothers me too so I've set a very simple map to quickly disable the hlsearch setting.  The map is as follows:
 
 map <leader>h set nohlsearch
 
 So, after a search and replace or after searching to find a bit of code I can quickly disable the highlighting that is no longer useful. 
 
Hopefully someone else in the list will be better able to answer your question specifically, but I hope my 'solution' is helpful until then.  
 
 Cheers,
 
Ethan Alan  
 

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Ethan Alan

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: