Monday, June 11, 2012

What is the purpose of the mappings proposed in :help write-plugin

Hi All,

I have been carefully reading :help write-plugin but I can't get to
understand why the <SID>-on-the-lhs mappings exist, what their purpose
is.

Docs say:

> Thus when a user types "\a", this sequence is invoked: >
>
> \a -> <Plug>TypecorrAdd -> <SID>Add -> :call <SID>Add()
>

But why not skip <SID>Add and Link <Plug>TypecorrAdd directly to :call
<SID>Add() ?

Thanks and regards,

--
Jacobo de Vera

--
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

No comments: