Hacker News new | ask | show | jobs
by dheerosaur 4924 days ago
I don't mind haveing color variables. When I need a new red, I define @projectRed or @redAlt. It is so much easier to remember red than some dangerColor.

Why will they choose hyphenated variables instead of camelCase?

1 comments

>Why will they choose hyphenated variables instead of camelCase?

Presumably because hyphentation is the standard in CSS.

But, variables are not standard in CSS. I always perceived less variables as JavaScript variables.

Now, I need to figure out a way to make Vim treat hyphenated words as words for filetype=less.

You can either use the 'W' movement (instead of 'w') or use the 'iskeyword' option to change what is considered a word character. Word movement: http://vimdoc.sourceforge.net/htmldoc/usr_03.html#03.1