Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make .less files to have .css syntax highlight in Vim?

Tags:

css

less

I've been using LESS and I find it very useful

I would like to have CSS syntax highlight in Vim with all .less files.

Any suggestions?

like image 969
alexchenco Avatar asked Jun 21 '10 09:06

alexchenco


People also ask

How do I create a syntax highlight in vim?

After opening login.sh file in vim editor, press ESC key and type ':syntax on' to enable syntax highlighting. The file will look like the following image if syntax highlighting is on. Press ESC key and type, “syntax off” to disable syntax highlighting.

Does vim support syntax highlighting?

VIM is an alternative and advanced version of VI editor that enables Syntax highlighting feature in VI. Syntax highlighting means it can show some parts of text in another fonts and colors. VIM doesn't show whole file but have some limitations in highlighting particular keywords or text matching a pattern in a file.

How do I enable syntax highlighting in vim Mac?

If you want to toggle this on/off (without creating a . vimrc file) simply type :syntax on while in vi/vim.

Where are the vim syntax files?

vim comes bundled with Vim and is available in /usr/share/vim/vim72/syntax/python. vim , if an alternative version is instead loaded from ~/. vim/syntax/python.


1 Answers

http://leafo.net/lessphp/vim/

Check the INSTALL file for instructions.

like image 117
reko_t Avatar answered Oct 07 '22 08:10

reko_t