styled-components / vim-styled-components

Vim bundle for http://styled-components.com based javascript files.
300 stars 24 forks source link

Installing plugin along side vim-coloresque adds -,#,. to keywords #38

Closed corevo closed 6 years ago

corevo commented 6 years ago

Having both this plugin and coloresque adds the -,#,. to iskeyword,
Its especially annoying when I try ciw and it picks up something.foo instead of just foo.

Plugin 'gorodinskiy/vim-coloresque'
Plugin 'styled-components/vim-styled-components'

I tried swapping their order, as well as only loading them with minimal .vimrc containing only syntax enable and vundle.
Both of them don't directly call set iskeyword which is why I'm a bit lost.

fleischie commented 6 years ago

Oh hi. This sounds like an interesting issue.

I will have to look into that. Gimme a half week or so. 😉

fleischie commented 6 years ago

@corevo Looking at the source, yes, Plugin 'gko/vim-coloresque' is setting keywords here: after/syntax/css/vim-coloresque.vim#L125.

So, yeah. The added keyword-characters are because of vim-coloresque.