Re: ok, new question on search
- Gene Kwiecinski wrote:
>>> Need to keep the pattern in memory? If not, "/zzz" will do it,:noh
>>> 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 vimrc:
>> nnoremap <silent> <M-/> :set @/=''<CR>
>> so pressing alt-/ then clears my search.
> Yeah, but all those <shift>- and <alt>- stretches on the kb make my
> fingers hurt... :D
(with no "set") clears search highlighting until next search. If the 4
characters are to much for you, map it to a key, e.g.
:map <F12> :noh<CR>
:imap <F12> <C-O>:noh<CR>
What the large print giveth, the small print taketh away.