vim-surround
vim-surround copied to clipboard
Problem with PHP code in HTML attributes
Using cit in an HTML element with an attribute removes additional characters when the attribute contains PHP. For example:
<p class="<?php echo $foo ?>">bar</p>
ends up as (where ^ is the cursor position):
<p class="<?php echo $foo ?>^</p>
so the "> at the end of the opening tag has been removed. Is there any chance of a fix?
Vim's built-in dit fails here as well, so no, probably no fix in the short term.
I've found this problem too. Has it been reported to vim?
Same for me! Is there any way I could help in order to get that fixed? Maybe implement another text object?