This vim bundle adds syntax highlighting, indenting and autocompletion for the dynamic stylesheet language LESS.
This bundle is compatible with vim-css-color,
vim-css3-syntax and possibly other plugins that place code
in after/syntax/css.vim
or after/syntax/css/*.vim
.
Install pathogen into ~/.vim/autoload/
and add the
following line to your ~/.vimrc
:
call pathogen#infect()
Make a clone of the vim-less
repository:
$ mkdir -p ~/.vim/bundle
$ cd ~/.vim/bundle
$ git clone https://github.com/groenewege/vim-less
OR use vundle, adding this line to your ~/.vimrc
:
Plugin 'groenewege/vim-less'
OR use neobundle, adding this line to your ~/.vimrc
:
NeoBundle 'groenewege/vim-less'
OR use git submodules:
$ git submodule add https://github.com/groenewege/vim-less.git bundle/vim-less
$ git submodule init
.less to .css , lessc is required.
nnoremap <Leader>m :w <BAR> !lessc % > %:t:r.css<CR><space>
Inspiration from vim-haml, scss-syntax.vim and vim-less
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。