- 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:
- Make sure the following statements are in your ~/.vimrc:
au BufNewFile,BufRead *.less set filetype=less
Update (Sept. 25, 2009): Here’s a screenshot: