Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Is there any way or could a way be added to conside _ a word break?

Open vlurgio opened this issue 8 years ago • 5 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] So when you do something like jump by word with w or change a word with cw if you have a variable name like my_first_variable it erases the entire word instead of just my or first for example. Whereas something like my-first-word does not. Is there any way to add an option to consider _ a word break?

vlurgio avatar Aug 23 '18 14:08 vlurgio

How is something like this generally configured in vanilla vim?

jpoon avatar Aug 24 '18 23:08 jpoon

It seems you use set iskeyword-=_ in your .vimrc

vlurgio avatar Aug 25 '18 00:08 vlurgio

Theres also a plugin called camelcasemotion which allows you to treat camelcase and underscores as word boundaries which would be even better.

vlurgio avatar Aug 25 '18 00:08 vlurgio

We support iskeyword. Please also see this: https://github.com/VSCodeVim/Vim/pull/3305

jpoon avatar Dec 30 '18 10:12 jpoon

@jpoon Shall I report that iskeyword is ignored in easymotion in separate issue ?

pkrefta avatar Jan 08 '19 14:01 pkrefta