Wednesday, August 14, 2019

nnoremap nmap confusion

The plugin srstevenson/vim-picker defines a list of mappings:

nnoremap <silent> <Plug>(PickerEdit) :PickerEdit<CR>

I tried to bind this mapping with

nnoremap <unique> <leader>E <Plug>(PickerEdit)

This fails with no error but the function seems to be not called. I get
a "beep" from my terminal bell. map shows me

n ,E * <Plug>(PickerEdit)

If I use nmap to bind the mapping this works:

nmap <unique> <leader>E <Plug>(PickerEdit)

and map shows:

n ,E <Plug>(PickerEdit)

The star (*) is missing in the nmap defined mapping. What does this star
mean? I always use nnoremap because of cargo-cult. This seems to be
wrong?

Kai

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190814142631.GA11527%40machine.

No comments: