Replies: 1 comment 1 reply
|
It might make sense indeed. There was a similar suggestion for 'mini.ai' (#1802) and the initial reasoning applies to 'mini.surround'. But as |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mini.surround motions like sF(, sf{, etc. move the cursor to the target delimiter, but do not record the current position in the jumplist.
Default Vim motions like [{, [(, ]}, ]) do add to the jumplist when the target bracket is more than one line away. This means users can easily return to their previous location with
<C-o>or<C-i>.mini.surround's behavior is inconsistent with this.
I wonder if it would be a good idea to mirror what Vim motions do?
All reactions