All Projects → shmargum → vim-sass-colors

shmargum / vim-sass-colors

Licence: MIT license
sass/scss/less/css color literal and color variable highlighting (works with imports)

Programming Languages

ruby
36898 projects - #4 most used programming language
Vim Script
2826 projects
CSS
56736 projects

Projects that are alternatives of or similar to vim-sass-colors

Vim Systemd Syntax
Syntax highlighting for systemd service files in Vim.
Stars: ✭ 57 (+137.5%)
Mutual labels:  vim-plugin, vim-plugins
Ale
Check syntax in Vim asynchronously and fix files, with Language Server Protocol (LSP) support
Stars: ✭ 11,380 (+47316.67%)
Mutual labels:  vim-plugin, vim-plugins
Fzf Filemru
File MRU with fzf.vim
Stars: ✭ 76 (+216.67%)
Mutual labels:  vim-plugin, vim-plugins
Vimcompletesme
You don't Complete Me; Vim Completes Me! A super simple, super minimal, super light-weight tab completion plugin for Vim.
Stars: ✭ 752 (+3033.33%)
Mutual labels:  vim-plugin, vim-plugins
Exit Vim
Vim plugin that exits Vim on startup
Stars: ✭ 176 (+633.33%)
Mutual labels:  vim-plugin, vim-plugins
Hot Reload.vim
A (Neo)vim plugin for Flutter to automatically hot reload the project every time a file is saved
Stars: ✭ 33 (+37.5%)
Mutual labels:  vim-plugin, vim-plugins
Vim Todo Lists
Vim plugin for TODO lists
Stars: ✭ 126 (+425%)
Mutual labels:  vim-plugin, vim-plugins
Nerdcommenter
Vim plugin for intensely nerdy commenting powers
Stars: ✭ 4,454 (+18458.33%)
Mutual labels:  vim-plugin, vim-plugins
Vim Dadbod Completion
Database autocompletion powered by https://github.com/tpope/vim-dadbod
Stars: ✭ 163 (+579.17%)
Mutual labels:  vim-plugin, vim-plugins
Targets.vim
Vim plugin that provides additional text objects
Stars: ✭ 2,114 (+8708.33%)
Mutual labels:  vim-plugin, vim-plugins
Context.vim
Vim plugin that shows the context of the currently visible buffer contents
Stars: ✭ 688 (+2766.67%)
Mutual labels:  vim-plugin, vim-plugins
Vifm.vim
Vim plugin that allows use of vifm as a file picker
Stars: ✭ 197 (+720.83%)
Mutual labels:  vim-plugin, vim-plugins
Alchemist.vim
Elixir Integration Into Vim
Stars: ✭ 632 (+2533.33%)
Mutual labels:  vim-plugin, vim-plugins
Vim Strand
A barebones Vim plugin manger written in Rust
Stars: ✭ 38 (+58.33%)
Mutual labels:  vim-plugin, vim-plugins
Tmux Complete.vim
Vim plugin for insert mode completion of words in adjacent tmux panes
Stars: ✭ 447 (+1762.5%)
Mutual labels:  vim-plugin, vim-plugins
Vimpanel
A modern side panel for Vim
Stars: ✭ 97 (+304.17%)
Mutual labels:  vim-plugin, vim-plugins
Pear Tree
A Vim auto-pair plugin that supports multi-character pairs, intelligent matching, and more
Stars: ✭ 327 (+1262.5%)
Mutual labels:  vim-plugin, vim-plugins
Vim Markdown Toc
A vim 7.4+ plugin to generate table of contents for Markdown files.
Stars: ✭ 427 (+1679.17%)
Mutual labels:  vim-plugin, vim-plugins
Vimux
easily interact with tmux from vim
Stars: ✭ 1,980 (+8150%)
Mutual labels:  vim-plugin, vim-plugins
Visual Split.vim
Vim plugin to control splits with visual selections or text objects
Stars: ✭ 190 (+691.67%)
Mutual labels:  vim-plugin, vim-plugins

vim-sass-colors

This is a vim plugin to highlight sass/scss/less/css colors and color variables. It works with imports!

vim sass colors sample

Installation

Install via pathogen

cd ~/.vim/bundle
git clone https://github.com/shmargum/vim-sass-colors.git

Install via Vundle

Plugin 'https://github.com/shmargum/vim-sass-colors.git'

Dependencies

This plugin uses ruby

Features

  • Highlights 3 and 6 digit hex, rgb(a), hsl(a), and regular css colors
  • Uses 24 bit colors if available; fallback to a 256 colors approximation otherwise
  • Automatically tries to process imports
  • Automatically tries to import master color definition files

Configuration options

Env Vars

  • VIM_SASS_COLORS_BASE_FOLDERS
    • Set the base stylesheet directories
    • default: sass,scss,less,css,stylesheets,style,styles
  • VIM_SASS_COLORS_BASE_FILES
    • Set the default/base file to automatically import
    • default: colors,variables

Example in .zshrc (or .bashrc)

export VIM_SASS_COLORS_BASE_FILES="colors,variables,custom-file-name"
export VIM_SASS_COLORS_BASE_FOLDERS="sass,scss,less,css,stylesheets,style,styles,custom-folder-name"

Vim Options

Disable by adding autocmd BufReadPre,BufNewFile * let b:did_vim_sass_colors = 1 to your .vimrc before the filetype plugin on line.

Notes

  • To get true 24-bit colors you should use a flavor of vim that supports the termguicolors option
  • This option is available in iTerm2 and neovim (at least)

Contributing

Submit an issue or PR

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].