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
<Plug>(operator-surround-replace)a'" will change above code to:
puts"foo"
Note that the line has one trailing space at the end of line. So 'foo ' is modified to "foo" .
This occurs because replacing is implemented as a combination of deleting and appending a surround. It deletes the surrounding ' at first(foo ), and then appends surrounding " next("foo" ). When appending the surround, the space is not counted as surrounding and only 'foo' is considered as target.
The text was updated successfully, but these errors were encountered:
When cursor is on 'f',
<Plug>(operator-surround-replace)a'"
will change above code to:Note that the line has one trailing space at the end of line. So
'foo '
is modified to"foo"
.This occurs because replacing is implemented as a combination of deleting and appending a surround. It deletes the surrounding
'
at first(foo
), and then appends surrounding"
next("foo"
). When appending the surround, the space is not counted as surrounding and only 'foo' is considered as target.The text was updated successfully, but these errors were encountered: