You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you highlight the left bracket in hello [] and type ci[, the inside of the brackets will be selected to start replacing which is the default text object. As far as I can tell, there is no way of indicating this behavior using the plugin. Is there something I missed, or should I look to try to modify textobj-user, and if so, do you have a suggestion where to start?
The text was updated successfully, but these errors were encountered:
There is no way to target an empty region in Vim script, as far as I know. So that you have to make a patch to Vim to provide this functionality before tweaking vim-textobj-user.
Additionally, if you specify the same position for both start and end positions, it means a region which consists of only one character, not an empty region.
Theoretically, it seems to be possible to target an empty region by selecting a character in Visual mode with 'selection' = exclusive. But Vim behaves as if this selection is inclusive, so that it targets the character instead of an empty region. This behavior is inconsistent with the description of :help 'selection'. It might be a bug, but it might be an intentional behavior for backward compatibility.
If you highlight the left bracket in
hello []
and typeci[
, the inside of the brackets will be selected to start replacing which is the default text object. As far as I can tell, there is no way of indicating this behavior using the plugin. Is there something I missed, or should I look to try to modify textobj-user, and if so, do you have a suggestion where to start?The text was updated successfully, but these errors were encountered: