vim-sass-lint


Ⅰ. 插件描述

sass-lint style checker for Syntastic

Ⅱ. 基本信息

创建日期:  2016-01-09
使用用户:  57
Github星:  22
插件作者:  Gregory Cornelius

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'gcorne/vim-sass-lint'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'gcorne/vim-sass-lint'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'gcorne/vim-sass-lint'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/gcorne/vim-sass-lint

Ⅳ. 文档说明

Sass Lint Syntastic Checker

A VIM sass-lint Syntastic syntax checker

Getting Started

  1. Install sass-lint via npm install -g sass-lint (requires Node.js)
  2. Install the vim-sass-lint and 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'
  1. Enable the sasslint checker in your .vimrc
let g:syntastic_sass_checkers=["sasslint"]
let g:syntastic_scss_checkers=["sasslint"]

Using with a config file

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'

添加新评论