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

The plugin breaks built-in is/as text objects #157

Open
dantonyuk opened this issue Jan 6, 2023 · 1 comment
Open

The plugin breaks built-in is/as text objects #157

dantonyuk opened this issue Jan 6, 2023 · 1 comment

Comments

@dantonyuk
Copy link

Vim already has a sequence text object accessible through is/as keystroke. Unfortunately, the plugin redefined these keystrokes to textobj-sandwich.

Having it documented how to keep the built-in mapping would be great.

Something like

unomap is
unxmap is
ounmap as
xunmap as

silent! omap <unique> iq <Plug>(textobj-sandwich-query-i)
silent! xmap <unique> iq <Plug>(textobj-sandwich-query-i)
silent! omap <unique> aq <Plug>(textobj-sandwich-query-a)
silent! xmap <unique> aq <Plug>(textobj-sandwich-query-a)
@ogaken-1
Copy link

:h g:sandwich_no_default_key_mappings

The option seems good to solve your issue.

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

2 participants