gko / vim-coloresque

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

incorrect word #22

Open amerov opened 10 years ago

amerov commented 10 years ago

Hi, if I use this plugin, appears incorrect word navigation: untitled untitled2 my vimrc: https://github.com/amerov/dotvim/blob/master/.vimrc

jgroeneveld commented 10 years ago

i have the same issue :verbose set iskeyword iskeyword=@,48-57,_,192-255,-,#,. Last set from ~/.vim/bundle/vim-polyglot/after/syntax/css/vim-coloresque.vim

this actually seems to be issue #20

valer-cara commented 10 years ago

+1

treymack commented 10 years ago

Workaround: after loading the excellent coloresque plugin:

:set isk-=- :set isk-=# :set isk-=.

noscripter commented 10 years ago

Same problem encountered. Following these question, get the following output:

iskeyword=@,48-57,_,192-255,$,-,#,.
        Last set from ~/.vim/bundle/vim-coloresque/after/syntax/css/vim-coloresque.vim  
noscripter commented 10 years ago

@treymack what's the detail steps or positions to write your fix?

treymack commented 10 years ago

Using Vundle:

Plugin 'gorodinskiy/vim-coloresque' :set isk-=- :set isk-=# :set isk-=.

It's been a while but IIRC it only works once, and when you open up another .css file, iskeyword is reset to include - # and .

noscripter commented 10 years ago

Thanks a lot, the other convenient way is to use :set isk? to checkout the current 'iskeyword' and add the characters like ..

firedev commented 9 years ago

Doesn't help. I guess I'll just disable it.