diff --git a/README.md b/README.md index 20301d0..7f0a27f 100644 --- a/README.md +++ b/README.md @@ -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>