highlight.vim : Highlight lines or patterns of interest in different colors
script karma |
Rating 239/116,
Downloaded by 8228 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Amit Sethi |
|
script type |
utility |
|
description |
Line mode
<C-h><C-h> Highlight current line
<C-h><C-a> Advance color for next line highlight
<C-h><C-r> Clear last line highlight
Pattern mode
<C-h><C-w> Highlight word under cursor (whole word match)
<C-h><C-l> Highlight all lines having word under cursor (whole word match)
<C-h><C-f> Highlight word under cursor (partial word match)
<C-h><C-k> Highlight all lines having word under cursor (partial word match)
<C-h><C-s> Highlight last search pattern
<C-h><C-j> Highlight all lines having last search pattern
<C-h><C-d> Clear last pattern highlight
<C-h><C-n> Clear all highlights
All above commands work in both normal & insert modes.
<C-h><C-h> also works in visual mode. (Select desired lines & hit <C-h><C-h>)
|
|
install details |
Copy highlight.vim to your .vim/plugin directory
|
|
script versions (upload new version)
Click on the package to download.
highlight.vim |
1.6 |
2011-04-12 |
6.0 |
Amit Sethi |
Changes to make it work with Console Vim (contributed by Min Kyu Jeong (mkjeong@gmail.com)) |
highlight.vim |
1.5 |
2010-09-09 |
6.0 |
Amit Sethi |
Added new hightlight mode:
" <C-h><C-j> Highlight all lines having last search pattern |
highlight.vim |
1.4 |
2009-11-19 |
6.0 |
Amit Sethi |
Changed Pattern modes. These are now as follows -
" Pattern mode
" <C-h><C-w> Highlight word under cursor (whole word match)
" <C-h><C-l> Highlight all lines having word under cursor (whole word match)
" <C-h><C-f> Highlight word under cursor (partial word match)
" <C-h><C-k> Highlight all lines having word under cursor (partial word match)
" <C-h><C-s> Highlight last search pattern
" <C-h><C-d> Clear last pattern highlight
"
|
highlight.vim |
1.1 |
2006-07-28 |
6.0 |
Amit Sethi |
Modified implementation of word highlight to override comments, etc. |
highlight.vim |
1.0 |
2006-07-05 |
6.0 |
Amit Sethi |
Initial upload |
ip used for rating: 44.220.255.141
|