Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ A very fast, multi-syntax context-sensitive color name highlighter<br>
<img src="https://raw.githubusercontent.com/ap/vim-css-color/5377c65022ee6d660b898bad954aeea73fa613b8/screenshot.png" width="763">
</div>

<h2>Conditional Loading</h2>

If you want to only load this plugin on some files, you can use conditional loading feature in [vim plug](https://github.com/junegunn/vim-plug#example)

```
Plug 'ap/vim-css-color', { 'for': [ 'css', 'scss' ] }
```

<sub>Inspired
by [Niklas Hofer](http://www.vim.org/scripts/script.php?script_id=2150)
and [Max Vasiliev](https://github.com/skammer/vim-css-color).</sub>