Saturday, October 17, 2020

Inconsistency between operating on text object motions and standard motions

If [count] is more than the number of objects available, operators with
motions operate on as many as possible.

For example: on a buffer with contents "x y z", "d5w" will delete from
the cursor to the end of the buffer.

Text object selection motions do not have this behavior. On a buffer
with contents "<<xyz>>", where the cursor is between the angles, "d5i<"
has no effect. Presumably it is being aborted because there are not
enough angle bracket pairs.

I'm not sure whether this is a bug or intended behavior, but I didn't
see it mentioned in the docs.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/47657fb8-96ed-deba-0cd4-d445b02e867b%40umanwizard.com.

No comments: