You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
e00015cf8d
git-subtree-dir: vim/bundle/less git-subtree-split: 5d965c221b90fb168bf9f447a332c9ff6f62e666 |
11 years ago | |
---|---|---|
ftdetect | 11 years ago | |
ftplugin | 11 years ago | |
indent | 11 years ago | |
syntax | 11 years ago | |
.gitignore | 11 years ago | |
README.md | 11 years ago | |
screenshot.png | 11 years ago |
README.md
VIM-LESS
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
.
Installing and Using
-
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
:Bundle 'groenewege/vim-less'
-
OR use git submodules:
$ git submodule add https://github.com/groenewege/vim-less.git bundle/vim-less $ git submodule init
Map
.less to .css , lessc is required.
nnoremap <Leader>m :w <BAR> !lessc % > %:t:r.css<CR><space>
Credits
Inspiration from vim-haml, scss-syntax.vim and vim-less