Vim: `dvb` doesn't work as expected

Created on 29 Nov 2016  路  7Comments  路  Source: VSCodeVim/Vim

Please thumbs-up 馃憤 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

Pressed the keys dvb on the normal mode.

What did you expect to happen?

Delete word backwards with current character included.

What happened instead?

On the normal mode, pressing dvb does only remove the character under the cursor and then moves backward a word.

Technical details:

  • VSCode Version: 1.7.2
  • VsCodeVim Version: 0.4.3
  • OS: macOS Sierra
kinbug

All 7 comments

Looks like a bug to me.

Could you provide some documentation or explanation about what dvb is supposed to do? I'm having a hard time finding information on what v is supposed to do here.

Shortly - it should be equal to vbd. As in: remove word backwards from the cursor with the current character included.

In reality the v modifier seems to be a bit more complex, see :help o_v in the vim docs. My usecase that I reported refers to the later paragraph:

If the motion already was characterwise, toggle
inclusive/exclusive.  This can be used to make an exclusive
motion inclusive and an inclusive motion exclusive.

Would be great to be able to toggle exclusive/inclusive. Direct link to the doc section https://github.com/vim/vim/blob/master/runtime/doc/motion.txt#L75

Yes, I really miss this and I think https://github.com/vim/vim/blob/202d982b36d87cf91d992bd7e30d3223bdc72cd9/runtime/doc/motion.txt#L117-L152 does a good job describing the functionality and the benefits of altering the motion to be 'inclusive' or 'exclusive' and 'characterwise' / 'linewise' / 'blockwise'. Maybe it could be added to the road map as a starting point?

Miss this too!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elithrar picture elithrar  路  3Comments

orn688 picture orn688  路  3Comments

edwintorok picture edwintorok  路  3Comments

triztian picture triztian  路  3Comments

jaredly picture jaredly  路  3Comments