Re: ok, new question on search

2007-04-02 Thread A.J.Mechelynck
Gene Kwiecinski wrote: Need to keep the pattern in memory? If not, "/zzz" will do it, assuming you don't have "zzz" anywhere else in your file, of course. The search register can be overwritten by setting @/ to ''. This then clears your search "properly". For my purposes, I have the follo

Re: ok, new question on search

2007-04-02 Thread Chad Gulley
i have a mapping that will toggle search highlighting on and off. you may find it useful. map :set hlsearch! -- chad On Mon, Apr 02, 2007 at 12:43:07PM -0400, Jean-Rene David wrote: > * shawn bright [2007.04.02 12:00]: > > when i do a search like /text > > it highlights all of the matches

Re: ok, new question on search

2007-04-02 Thread Jean-Rene David
* shawn bright [2007.04.02 12:00]: > when i do a search like /text > it highlights all of the matches and i can use n > and N to navigate. how do i turn the > highlighting off when i am done? There's a command to do exactly that: :nohlsearch This will turn off highlighting for the current sear

Re: ok, new question on search

2007-04-02 Thread Guido Van Hoecke
shawn bright said on 02-04-07 17:56: lo there, when i do a search like /text it highlights all of the matches and i can use n and N to navigate. how do i turn the highlighting off when i am done? You could put following mapping in your.vimrc: :nnoremap :nohlsearch Now, as soon as you hit t

Re: ok, new question on search

2007-04-02 Thread shawn bright
great, have this set now in mine. thanks, sk On 4/2/07, Albie Janse van Rensburg <[EMAIL PROTECTED]> wrote: Gene Kwiecinski wrote: >> when i do a search like /text >> it highlights all of the matches and i can use n and N to navigate. >> how do i turn the highlighting off when i am done? >> > >

RE: ok, new question on search

2007-04-02 Thread Gene Kwiecinski
>cool enough, i guess i could map something to >:/impossible_to_find_text or something Or, just "zzz"... or "qwqw"... or ";;;"... etc.

RE: ok, new question on search

2007-04-02 Thread Gene Kwiecinski
>>Need to keep the pattern in memory? If not, "/zzz" will do it, assuming >>you don't have "zzz" anywhere else in your file, of course. >The search register can be overwritten by setting @/ to ''. This then >clears your search "properly". >For my purposes, I have the following mapping in my vim

Re: ok, new question on search

2007-04-02 Thread shawn bright
cool enough, i guess i could map something to :/impossible_to_find_text or something thanks sk On 4/2/07, Gene Kwiecinski <[EMAIL PROTECTED]> wrote: >when i do a search like /text >it highlights all of the matches and i can use n and N to navigate. >how do i turn the highlighting off when i am

Re: ok, new question on search

2007-04-02 Thread Albie Janse van Rensburg
Gene Kwiecinski wrote: when i do a search like /text it highlights all of the matches and i can use n and N to navigate. how do i turn the highlighting off when i am done? Need to keep the pattern in memory? If not, "/zzz" will do it, assuming you don't have "zzz" anywhere else in your f

RE: ok, new question on search

2007-04-02 Thread Gene Kwiecinski
>when i do a search like /text >it highlights all of the matches and i can use n and N to navigate. >how do i turn the highlighting off when i am done? Need to keep the pattern in memory? If not, "/zzz" will do it, assuming you don't have "zzz" anywhere else in your file, of course. Can fiddle

ok, new question on search

2007-04-02 Thread shawn bright
lo there, when i do a search like /text it highlights all of the matches and i can use n and N to navigate. how do i turn the highlighting off when i am done? thanks sk