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

6 Points

BenoĆ®t Zugmeyer Benoît Zugmeyer

8 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 8 years ago


Rahul Gupta

Rahul Gupta 5 years ago

Super helpful, thanks.. !