Ответ на сообщение «Re: Bug: Making «< sc» abbreviation is not possible», 
присланное в 00:10:21 01 июля 2010, Четверг,
отправитель Bram Moolenaar:

> Most likely has something to do with keyword characters, since
> 'iskeyword' has a different value in help files.

Yes, James Vega already pointed me that I should have «<» in «iskeyword» option 
in order to be able to make this abbreviation. Now I understand that it is not 
a 
bug, but I think that error message should be more verbose, like:

    Exxx: Invalid abbreviation: <sc

and *Exxx* tag before the line «There are three types of abbreviations».

Текст сообщения:
> ZyX (?) wrote:
> > Trying to make an abbreviation using
> > 
> >     iabbrev <sc test
> >     iabbrev <lt>sc test
> >     iabbrev \<sc test
> >     iabbrev <lt><Char-115>c test
> >     iabbrev <script> <lt>sc test
> >     set cpoptions-=<
> >     iabbrev <sc test
> >     iabbrev <script> <sc test
> >     iabbrev <special> <lt>sc test
> > 
> > Results in
> > 
> >     E474: Invalid argument
> > 
> > at least on empty file. Strange, but it succeeds if I open a help window
> > and define this abbreviation while being in it, though this abbreviation
> > works only in help window.
> > 
> > Tested on vim-7.2.303, vim-7.2.444, vim-7.3a. Behavior in help window
> > tested only on vim-7.2.303.
> 
> Most likely has something to do with keyword characters, since
> 'iskeyword' has a different value in help files.
> 
> It also helps if you pinpoint the line that causes the error, it should
> be mentioned if you source a script with these lines.

Attachment: signature.asc
Description: This is a digitally signed message part.

Raspunde prin e-mail lui