Wikia

Vim Tips Wiki

Script:1599

1,623pages on
this wiki
Talk0

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.

CommentsEdit

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

Around Wikia's network

Random Wiki