Saturday, April 14, 2012

Re: MRU plugin

Michael Ludwig schrieb am 14.04.2012 um 14:08 (+0200):
> Tarlika Elisabeth Schmitz schrieb am 14.04.2012 um 12:03 (+0100):
>
> > When I modified the plugin, I also created an additional :mru
> > command to avoid the shift or is there a reason for having caps?
>
> I think it's by convention to avoid collisions with built-ins.

Just found the doc place by accident:

:help user-functions

The function name must start with an uppercase letter, to
avoid confusion with builtin functions. To prevent from using
the same name in different scripts avoid obvious, short names.
A good habit is to start the function name with the name of
the script, e.g., "HTMLcolor()".

Michael

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