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

Handling for default keybinds #35

Open
metakirby5 opened this issue Feb 4, 2017 · 1 comment
Open

Handling for default keybinds #35

metakirby5 opened this issue Feb 4, 2017 · 1 comment

Comments

@metakirby5
Copy link
Contributor

I have the following keybinds for the z prefix:

n  zs          * <Esc>:set foldmethod=syntax<CR>zR
n  zi          * <Esc>:set foldmethod=indent<CR>zR
n  zm          * <Esc>:set foldmethod=marker<CR>zR
n  z           * :<C-U>LeaderGuide 'z'<CR>

However, this seems to disable default keybindings like za. Is there a way to pass them through?

@hecal3
Copy link
Owner

hecal3 commented Mar 18, 2017

Sorry for the late reply. This turns out to be surprisingly tricky problem. The z* default bindings are handled different from mappings.
For some reason the z mapping is always triggered when invoking a z* command like zz.

A possible workaround is to redefine all the default commands as mappings:

nnoremap zz zz
nnoremap z+ z+
nnoremap z- z-
nnoremap z. z.
nnoremap z= z=
etc.

This is admittedly not all that great.
I will definitely look for a better solution.

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