vim-textobj-user icon indicating copy to clipboard operation
vim-textobj-user copied to clipboard

Operator with "motion force" is not supported

Open glts opened this issue 12 years ago • 3 comments

I realize that you already know this problem very well. But since there is no issue on the issue tracker I figured I'd open one.

Steps to reproduce (_ means space):

On a line containing just

___word__

with the cursor on "word", diw deletes the word and leaves us with

_____

The command dViw deletes the same but "linewise", which means that effectively the whole line is deleted.

Using textobj-line to do the same thing: dil is the same as diw, but with dVil the "linewise" motion force is ignored.

This is not a useful example but it illustrates the problem.

Documentation is at :h o_v. I have reopened the discussion on the vim_dev mailing list:

https://groups.google.com/d/msg/vim_dev/MNtX3jHkNWw/bhL-o6TlKtgJ

glts avatar Apr 18 '13 15:04 glts

Right, that is excellent.

I don't know whether you would like to participate in the discussion on vim_dev? – If not or if you don't have time, I would gladly update the patch and write a test, maybe that will convince Bram to include it. Would that be ok with you?

glts avatar Apr 19 '13 15:04 glts

I would gladly update the patch and write a test, maybe that will convince Bram to include it. Would that be ok with you?

Sure. Thank you for the favor.

kana avatar Apr 20 '13 03:04 kana