-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Treat self-closing XML/HTML tags as <> #376
Comments
I think I agree. However, surround.vim is merely delegating to Vim's built-in And I don't plan on breaking with Vim here. You could try floating your proposal to Vim itself, but I doubt it would be considered due to backwards compatibility concerns. |
Makes sense, thanks! |
Looks like vim has already documented this:
Sounds like what I really want is a custom text-object plugin to declare something like |
Yes, but see #355. |
Oops, I meant to link to #329 (comment). |
Steps to reproduce
<inner />
:/inn
ysat<middle>
(not shown below) or ``ysatmiddle>` (shown)Expected result:
Observed result
Workaround
ysa<<middle>
orysa<<C-T>middle>
Background
Self-closing tags come up in HTML5, XML, React, etc.
I was just turning a React component from a flex-row into a table, and as I wrapped each element with
<td>
I had to switch betweenysat
andysa<
depending on if it was self-closing or not.The text was updated successfully, but these errors were encountered: