Ⅰ. 插件描述
vim syntax for LESS (dynamic CSS)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jkimbo/vim-less-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jkimbo/vim-less-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jkimbo/vim-less-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jkimbo/vim-less
Ⅳ. 文档说明
# VIM-LESS #
This vim bundle adds syntax highlighting for the dynamic stylesheet language LESS.
This bundle is compatible with vim-css-color.
Includes css indenting file from Nikolai Weibull
Installing and Using
- Install pathogen into
~/.vim/autoload/and add the
following line to your~/.vimrc:
call pathogen#runtime_append_all_bundles()
Be aware that it must be added before any `filetype plugin indent on`
lines according to the install page.
Make a clone of the
vim-lessrepository:$ mkdir -p ~/.vim/bundle $ cd ~/.vim/bundle $ git clone https://github.com/groenewege/vim-lessOR use git submodules:
$ git submodule add https://github.com/groenewege/vim-less.git bundle/vim-less $ git submodule init
That's it. Pathogen should handle the rest. Opening a file with a .less
extension will load everything.
Credits
Inspiration from vim-haml,
scss-syntax.vim and
vim-less