Tuesday, September 3, 2024

Re: Using mapping


вт, 3 сент. 2024 г. в 18:48, Christian Brabandt <cblists@256bit.org>:

On Di, 03 Sep 2024, Enan Ajmain wrote:

> Hi everyone,
>
> ":h using-<Plug>" explains the usecase of <Plug> in quite an obscure
> manner.  Using examples from perspectives of plugin authors _and_ plugin
> users would be more helpful.  It should specially inform the user that
> any mapping using the "<Plug>" keyword should be a recursive mapping.
>
> I think the doc should be updated.  Maybe we can follow this vi.SO
> answer: https://vi.stackexchange.com/a/31013.

Can you think of a concrete doc patch please?

Thanks,
Christian
--
So many men, so many opinions; every one his own way.
                -- Publius Terentius Afer (Terence)

--
--
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/ZtcvulbSY8BEIuKw%40256bit.org.

 
Hello,

Actually, it's not written like this,  because it's not like this. In a sense that any occurence of <plug>thing is always treated as recursive.
So users (finally ;-) don't have to remember about it. I can't say when it was done exactly but more than a few months at least.

Yet if you believe that the docs should be improved, as Christian suggested, you can submit your patch.
If registered on github then you can also create a pull request at https://github.com/vim/vim/pulls
Both source code and documentation improvements are always welcome.

Kind regards,
Matvey

--
--
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/CAFsTB%2BLmZ5Q5Dmvq7Jg%3DJmk%2BD_CjUbEaBVcyjiKc%2BD7sPoWQ7Q%40mail.gmail.com.

No comments:

Post a Comment