Browse files

set comments option to a suitable value

Set comments to the same as CSS. This avoids a ">" leader being added when pressing enter at the end of a line starting with >, as in

	ul.special {
		> li {
			color: red;

Before this patch pressing enter at the end of the > li { line annoyingly puts a > at the start of the next line.
  • Loading branch information...
1 parent 2c4074b commit 40f63617a9d11c4e9afc50756a50924241504c68 @tremby tremby committed Mar 6, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 ftplugin/less.vim
@@ -18,6 +18,7 @@ setlocal define=^\\s*\\%(@mixin\\\|=\\)
setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
setlocal omnifunc=csscomplete#CompleteCSS
setlocal suffixesadd=.less
+setlocal comments=s1:/*,mb:*,ex:*/
let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='

0 comments on commit 40f6361

Please sign in to comment.