vim-easymotion icon indicating copy to clipboard operation
vim-easymotion copied to clipboard

lineforward in operator-pending mode: acts on one-short of full words

Open opi9a opened this issue 7 years ago • 0 comments

Thanks for making this plug in, I think it's amazing and I use it all the time :)

I don't know if this is intended behaviour, but one thing I feel could be improved for my use of the plugin is the implementation of <Plug>(easymotion-lineforward).

I find myself wanting to use this as an all-purpose command for operating on a line. It works great for motion, as I can use it to immediately go to the start or end of any word. But when I want to operate on the words, the scope only goes up to the last-but-one letter of the word whose end I've targetted.

For example, suppose I try to yank up to the end of vim easy motion - i.e. targeting the end of motion. I will end up copying vim easy motio.

A work-around is to call lineforward in visual mode, in which case the full words are now acted on by operators. But, for my uses at least, it would be more efficient to be able to target full words directly with operations.

As I say I wasn't sure if this is intended. If so, is there any workaround or .vimrc patch you could suggest that I could use to get the behaviour I'm after (without having to use visual mode)?

Thanks again for your efforts, I really appreciate what you have made.

opi9a avatar Jul 29 '18 16:07 opi9a