On Mar 11, 2014 9:26 PM, "Cade Forester" <[email protected]> wrote:
>
> > In the example the function is called s:SID, and that's what is being
> > matched. I don't think this needs to change
>
> If somebody copy this code and rename function, pattern will not match.
> Since the function name can't contain angle brackets, not necessarily
> appending it to pattern.
function <SNR>:()
echo 'It works!'
endfunction
echo (<SNR>:()+1)
" echoes "It works!", then 1
is a valid VimL code.
>
> > It's good to give a hint that it may be a function name, however adding
> > too much text causes the line to wrap and that spoils the looks of the
> > table.
>
> I add few sentences and example:
>
> --
> --
> You received this message from the "vim_dev" 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_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.