However, if I do :nmap ,s or :nmap s nvim prints "No mapping found."
Why?
:map
(and variants) will return the mappings that Vim/NeoVim is currently using. In your setup you have:
nmap ,, <Plug>(easymotion-prefix)
There are a few more that easymotion looks to map. Specifically ones that look like:
<Plug>(easymotion-prefix)N <Plug>(easymotion-N)
<Plug>(easymotion-prefix)n <Plug>(easymotion-n)
<Plug>(easymotion-prefix)j <Plug>(easymotion-j)
" So on and so forth
None of the mappings you have a *
ahead of the Right-hand-side. See :h map-listing
. This means the mappings will trigger other mappings (aka recursive mappings). This mean you can trigger <Plug>(easymotion-N)
via <Plug>(easymotion-prefix)N
which is also equivalent to ,,N
. There is no ,,N
mapping, but due to the maps being recursive and chording <Plug>(easymotion-N)
can still be executed.
So when you execute, ,,s
the ,,
maps to <Plug>(easymotion-prefix)
then waits for another possible letter to find another mapping. In this case a s
. When the s
is pressed it expands fully to <Plug>(easymotion-s)
.
For more help see:
:h mapping
:h map-listing
:h :filter
nmap s
and querying maps via:nmap ,s
. Those are not the same mappings. Maybe you can do:filter /easy/ nmap
to find your mappings
is not the mapping. I believe thateasymotion-overwin-f
takes the arguments
and creates the mapping<Leader>s
which in my case is,s
. In any case, one way or another,s
gets setup as the mapping... so I don't see why it wouldn't be listed. I've edited the OP with the output from:filter /easy/ nmap
.