A VIM sass-lint Syntastic syntax checker
- Install
sass-lintvianpm install -g sass-lint(requires Node.js) - Install the
vim-sass-lintand the syntastic plugin. I use Vundle to simplify my plugin management, but this plugin should work with any vim plugin management tool.
To install with Vundle, follow the Vundle install instructions and then add syntastic and vim-sass-lint to your .vimrc.
Plugin 'scrooloose/syntastic'
Plugin 'gcorne/vim-sass-lint'- Enable the
sasslintchecker in your.vimrc
let g:syntastic_sass_checkers=["sasslint"]
let g:syntastic_scss_checkers=["sasslint"]By default, vim-sass-lint will look for .sass-lint.yml in a parent directory of the file being checked. If found, it will use that config.
Alternatively, a config file can be specified by using a buffer or global variable. The most common case is probably to add the path to the config file to your .vimrc
let g:sass_lint_config = '/path/to/config.yml'