Skip to content
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

add binding to target [], () or {} (whichever is present) #369

Open
MRAAGH opened this issue Dec 2, 2022 · 1 comment
Open

add binding to target [], () or {} (whichever is present) #369

MRAAGH opened this issue Dec 2, 2022 · 1 comment

Comments

@MRAAGH
Copy link

MRAAGH commented Dec 2, 2022

Idea comes from https://github.com/Julian/vim-textobj-brace. Text objects ij and aj target [], () or {} (whichever is present). Useful since it's quicker to type.

In vim-surround, for example, dsj could delete the surrounding enclosure of any type.

Any thoughts? Maybe this should be a new plugin and not part of vim-surround?

@MRAAGH
Copy link
Author

MRAAGH commented Dec 2, 2022

Of note: nmap dsj "syij"_daj"sP works for this particular use case without relying on vim-surround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant