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

6 Points

BenoĆ®t Zugmeyer Benoît Zugmeyer

9 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

dmitry12 9 years ago

Awesome!

Rahul Gupta

Rahul Gupta 6 years ago

Super helpful, thanks.. !