gko / vim-coloresque

css/less/sass/html color preview for vim
352 stars 63 forks source link

Use `setlocal` over `set` to contain changes to buffer #30

Closed geoffharcourt closed 8 years ago

geoffharcourt commented 8 years ago

Using set isk changes rules about what characters count as keywords in buffers that don't contain CSS. Plugins should use setlocal for to change settings for a buffer.

Updated the command invocation to use iskeyword to improve clarity about what the function is doing.

Fix #22. Close #20