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

nnoremap doesn't work as expected, depends on other mappings #800

Open
SeerLite opened this issue Apr 4, 2023 · 1 comment
Open

nnoremap doesn't work as expected, depends on other mappings #800

SeerLite opened this issue Apr 4, 2023 · 1 comment

Comments

@SeerLite
Copy link

SeerLite commented Apr 4, 2023

Hi!

nnoremap might not work depending on what (non-recursive) mappings have been done before it. It doesn't seem to be completely isolated from other mappings.

Consider this:

nnoremap "m" "h"
nnoremap "am" "fh"

Pressing am won't do anything (when fh, decrease column width, is expected). Note that it's not that it's recursive and executing ah either:

nnoremap "m" "h"
nnoremap "ah" "fh"

won't do anything.

However, if am is mapped before m is mapped, it works correctly:

nnoremap "am" "fh"
nnoremap "m" "h"

This is how I expect it to work even when the order of the lines is switched.

@SeerLite SeerLite changed the title nnoremap doesn't work as expected nnoremap doesn't work as expected, depends on other mappings Apr 4, 2023
@andmarti1424
Copy link
Owner

hello. yes, i wont say its not working as expected. we might need to add extra doc explaining this.

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