On Sat, Oct 14, 2006 at 03:36:19AM +0200, A.J.Mechelynck wrote:
> Yongwei Wu wrote:
> >Hi Benji,
> >
> >On 10/12/06, Benji Fisher <[EMAIL PROTECTED]> wrote:
> >>
> >>Perhaps you can package your vim functions as a plugin so that they can
> >>be used without adding anything to the vimrc file.
> >>
> >>:help write-plugin
> >
> >I thought of doing this, but this seems far too personal. My script
> >works best on Simplified Chinese locale, with the ability to tell
> >between utf-8, gb2312/gbk, big5, and latin1. Some small tweaks are
> >probably needed when the environment or requirements are different. So
> >maybe it is more suitable to be a tip.
> >
> >If it is only in the mailing list, it can quickly get lost. So I will
> >consider your suggestion and try to do something.
> 
> I suspect you are not the only person using Vim to edit Simplified Chinese; 
> furthermore, I suspect that your script might be useful, if only as a 
> source of inspiration, to someone wishing to discriminate between the 
> various encodings used for the other CJK languages, viz. Traditional 
> Chinese, Japanese and Korean. IMHO it would be better as a script than as a 
> tip because it is easier to upload new versions of a script. Or maybe a 
> script to "do the job" and a tip explaining to Vim users, in pain language, 
> what to look for when trying to guess the encoding for CJK text files.

     Nothing is ever lost, but it is harder for others to find it in the
archives of the mailing list than in the tips database, if only because
there are a lot more e-mails on the list than there are tips.  So it
really comes down to a question of convenience.  Similarly, if the
scripts are in a tip, then users have to copy them into a file to be
:source'd, which is less convenient than having them in a plugin.

     As Tony points out, it is easier to update scripts than tips.  A
reader may have to read through the comments section of a tip to find
changes that (s)he will want to apply:  not at all convenient!  Of
course, updating the script means more work for you, but it gives you an
opportunity to implement the tweaks needed for other environments as you
get feedback from other users.  Of course, the only reward you get for
any of this effort is the satisfaction of helping others in the vim
community.

                                        --Benji Fisher

Reply via email to