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

How to unmap "s" mapping? #257

Closed
oryband opened this issue Jun 18, 2020 · 4 comments
Closed

How to unmap "s" mapping? #257

oryband opened this issue Jun 18, 2020 · 4 comments
Labels

Comments

@oryband
Copy link

oryband commented Jun 18, 2020

I can't figure this out from the documentation. Thank you!

@nall
Copy link

nall commented Jun 26, 2020

I think this is what you're looking for from :help sneak:

                                                        sneak-disable-mappings
To "disable" Sneak default mappings, simply define any other mapping to the
relevant <Plug> key. For example to prevent Sneak from remapping "s" and "S",
just map to <Plug>Sneak_s and <Plug>Sneak_S as shown below.

@justinmk
Copy link
Owner

see also #248

@oryband
Copy link
Author

oryband commented Jul 31, 2020

@justinmk please reopen, this doesn't work:

map ; <Plug>SneakNext

" disable s mapping
nmap ? <Plug>Sneak_s
nmap ? <Plug>Sneak_S
xmap ? <Plug>Sneak_s
xmap ? <Plug>Sneak_S
omap ? <Plug>Sneak_s
omap ? <Plug>Sneak_S

nmap f <Plug>Sneak_f
nmap F <Plug>Sneak_F
xmap f <Plug>Sneak_f
xmap F <Plug>Sneak_F
omap f <Plug>Sneak_f
omap F <Plug>Sneak_F

nmap t <Plug>Sneak_t
nmap T <Plug>Sneak_T
xmap t <Plug>Sneak_t
xmap T <Plug>Sneak_T
omap t <Plug>Sneak_t
omap T <Plug>Sneak_T
:nmap s
n  s             <Plug>Sneak_s

@justinmk
Copy link
Owner

justinmk commented Aug 2, 2020

see #248

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

No branches or pull requests

3 participants