You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
SeerLite
changed the title
nnoremap doesn't work as expected
nnoremap doesn't work as expected, depends on other mappings
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:
Pressing
am
won't do anything (whenfh
, decrease column width, is expected). Note that it's not that it's recursive and executingah
either:won't do anything.
However, if
am
is mapped beforem
is mapped, it works correctly:This is how I expect it to work even when the order of the lines is switched.
The text was updated successfully, but these errors were encountered: