T. Joseph Carter b06d67a073 Make color matches not happen in the middle of \w
Valid colors won't appear inside of a word, so we'll use a clever bit of
vim to match them only not immediately after a word (as opposed to a
WORD, they're not the same thing in vim.) This was done by patching the
patterns in about line 319-321.

This created a new problem however if an invalid color such as…

call minpac#add('gko/vim-coloresque')

…happened to appear in the same file as a valid '#add' color. To fix
that, we use the same '\w\@<!' trick on b:matchescache. Issue fixed.

Thanks to markzen for suggesting the regex solution, I'd never have
stumbled upon it myself without a pointer in the right direction.
2019-10-16 01:26:35 -07:00
2013-10-15 10:24:29 +04:00
+
2013-10-22 10:55:34 +04:00
2013-08-12 13:51:32 +04:00

Coloresque


Important! If you experience any lags in css/html/less/sass files please update to latest version(0.9.5) of plugin.

The issue #13 from 26.09.2013. Sorry for the inconvenience.


pic

color preview for vim.

###Overview

This is merge of ap vim-css-color and colorizer. The main goal was to fix cursorline bug and keep named colors(i.e. white, black, aqua). I ended up mixing both plugins plus wrote some stuff, so I decided to leave it as a separate plugin.

###Installation

Via vundle:

Bundle 'https://github.com/gorodinskiy/vim-coloresque.git'

###Features

You can still use hsl(a)

Picture

or multiple colours on same line

Picture

and you can use named colors(case insensitive)

Picture

Description
css/less/sass/html color preview for vim
Readme 154 KiB
Languages
Vim Script 100%