Set hyphens as part of the word when working on CSS files

6 Points

BenoĆ®t Zugmeyer Benoît Zugmeyer

7 years ago

In CSS, hyphens are part of identifiers (keywords, properties, selectors...). By adding it to the iskeyword list, vim will consider identifiers as a whole word.

au! FileType css,scss setl iskeyword+=-


dmitry12 7 years ago


Rahul Gupta

Rahul Gupta 4 years ago

Super helpful, thanks.. !