Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>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




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: