>Here’s a quick HOWTO for enabling vim syntax highlighting for .less (lesscss) files:
- Create the directory ~/.vim/syntax/ if it does not exist yet.
- Download the vim syntax file less.vim into that directory, e.g. with the command:
wget http://leafo.net/lessphp/vim/less.vim
- Make sure the following statements are in your ~/.vimrc:
syntax on
au BufNewFile,BufRead *.less set filetype=less
That’s all.
Update (Sept. 25, 2009): Here’s a screenshot: