Wednesday, March 21, 2018

Re: Questions about mapping information

On 21/03/2018 09:57, Nikolay Aleksandrovich Pavlov wrote:
> 2018-03-21 10:34 GMT+03:00 Lifepillar <lifepillar@lifepillar.me>:
>>
>> :verbose imap <cr> shows this:
>>
>> i <CR> &@<Plug>(MUcompleteCR)<SNR>24_AutoPairsReturn
>> Last set from ~/.vim/pack/bundle/start/auto-pairs/plugin/auto-pairs.vim
>>
>> i <CR> <Plug>MyCR
>> Last set from ~/.vim/vimrc
>>
>> First question: why are there two definitions instead of one? I.e., why
>> is the mapping from my vimrc shown at all?
>
> Due to buffer-local mappings there may exist at most {number of loaded
> buffers present}+1 mapping definitions, with buffer-local mappings
> attached to the current buffer taking precedence over global mapping
> definition and buffer-local mappings attached to other buffers
> ignored.
>
>> Second question: what does &@ mean in the first definition?
>
> There is `:h map-listing` which explains both. You could found that by
> searching for `&` after `:h :map`; though there are some mishits.

Thanks, that's exactly the info I needed!
Life.

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment