Problem: Some important info is missing in :write-plugin.
Solution: Provide more links in appropriate places; also make some text more consistent.
Context:
:noremap will remap <Plug>.... It's pointed out by nickspoons. I also found it confusing when I first learned it from vi.stackexchange, answered by romainl.noremap <script> is described differently between :plugin-special and :ftplugin-special.https://github.com/vim/vim/pull/20411
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I am not quite sure for the first part:
Note: when appears in the {rhs} of a mapping, this part is
always applied even if remapping is disallowed. |:nore|
First of all, this is the second Note: following each other, so, I think we can drop it. Then, what means applied in that context? And third, it is not anywhere but the {rhs} must start with <Plug>
So I'd rather say it like this:
When starts the {rhs} of a mapping, the {rhs} is always recursively resolved even if remapping is explicitly disallowed.
The second part of the diff is fine I'd say.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Yes, I believe that your version is better. I was not quite sure about wording so I ended up picking what is written in |:nore|. (I also found applied a bit strange to me, but since it was already used.)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
OK, it seems that I might not get this part:
And third, it is not anywhere but the
{rhs}must start with<Plug>
For example, I tried:
nnoremap <leader>ff WW<Plug>(aa)
nnoremap <Plug>(aa) :echom "from <Plug>(aa)"<CR>
and triggering the first map seems to still print from <Plug>(aa). What did I miss in this case?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Hm, maybe it does apply always, I remember wrong then.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Maybe your memory is correct. I did check the first PR https://github.com/vim/vim/pull/9879/changes, which indeed used the wording "starts with <Plug>". But the current version is somehow different, as in :h :nore:
Note: When <Plug> appears in the {rhs} this part is
always applied even if remapping is disallowed.
Do we need to update "applied" there too? (if so, in this or another PR?)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()