Skip to content

MeF0504/hicolcode.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hicolcode.vim

Vim plugin that highlight color codes in lines.

colcode

Requirements

Installation

call dein#add('MeF0504/hicolcode.vim')
Plug 'MeF0504/hicolcode.vim'

or do something like this.

Usage

:ColCode

search for and highlight color codes in current line.
The color code this plugin highlight is #[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f],
e.g. #7d8fa4, #a47996, #00af5d.

:ColCodeClear

clear all highlights set by this plugin.

ColCode command can specify the line number range. If you want to highlight lines from 2 to 10, you can do this by

:2,10ColCode

or, if you want to highlight all lines in the current file, the following command is possible.

:%ColCode

Options

  • g:hicolcode_auto_enable (number)
    If set 1, color codes are highlighted automatically.
    default: 0
  • g:hicolcode_max_idx (number)
    The max number of highlight indexes. Bigger is better to avoid duplication, but maybe the processing becomes heavy.
    default: 100

License

MIT

Author

MeF0504

About

vim plugin that highlight color codes in lines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published