Use this page to discuss script 1599 highlight.vim : Highlight lines or patterns of interest in different colors
- Add constructive comments, bug reports, or discuss improvements (see the guideline).
- Do not document the script here (the author should do that on vim.org).
- This page may be out of date: check the script's vim.org page above, and its release notes.
Comments[]
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!