Hi, can you add a mapping to move the highlight color backwards i.e. opposite of control-h contrl-a. --March 6, 2013
Thanks, this is one of the most helpful scripts I have found. I made the following changes to make "match" searches case insensitive:
highlight.vim -- add "\c" to the following lines to make "match" case insensitive
151 let match_pat = '\c.*\%'.line(".").'l.*' 169 exec 'syn match ' . s:pcolor_grp . s:pcolor_n . ' "\c' . cur_word . '" containedin=ALL' 172 exec 'syn match ' . s:pcolor_grp . s:pcolor_n . ' "\c\<' . cur_word . '\>" containedin=ALL' 175 exec 'syn match ' . s:pcolor_grp . s:pcolor_n . ' "\c.*' . cur_word . '.*" containedin=ALL' 178 exec 'syn match ' . s:pcolor_grp . s:pcolor_n . ' ".*\<\c' . cur_word . '\>.*" containedin=ALL'
--August 30, 2013
There is a bug in the current script and I am hoping someone can fix it. Sometimes it only highlights part of a line and not the entire line. This can best be demonstrated with the following steps:
1) Open the plugin file itself (highlight.vim)
2) Go to line #59 (The first remap line)
3) Press [C-h][C-h] which should highlight that line
Only the part of the line from <silent> gets highlighted and the noremap and two spaces at the beginning of that line remains unhighlighted.
If someone can fix this bug, this script would be great!