Thursday, July 5, 2018

Discrepancy between inner text objects for empty delimited blocks

Executing the inner object of an empty HTML element will select the outer object:

<p> text <i>|</i> text </p>
dit
<p> text text </p>

Doing the same with any other kind of delimited block, say, a parenthesized one, is just a no-op:

(defun (|) arg)
dib
(defun (|) arg)

Theoretically speaking, this looks like inconsistency.
Is there some subtle practical value in it?

(The behavior is documented in :help tag-blocks, but there's no explanation as to why it only applies to tag delimiters.)

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: