Skip to content
This repository

vim syntax for LESS (dynamic CSS)

tree: aaf0c284ad

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 ftdetect initial import May 18, 2011
Octocat-spinner-32 ftplugin
Octocat-spinner-32 indent
Octocat-spinner-32 syntax
Octocat-spinner-32 .gitignore Add indent file September 26, 2011
Octocat-spinner-32 README.md
Octocat-spinner-32 screenshot.png Add screenshot September 28, 2011
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.

vim-less with vim-css-color and vim-css3-syntax (colorscheme solarized)

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 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.

Map

.less to .css , lessc is required.

nnoremap ,m :w <BAR> !lessc % > %:t:r.css<CR><space>

Credits

Inspiration from vim-haml, scss-syntax.vim and vim-less

Something went wrong with that request. Please try again.