> There are three kinds of abbreviations, see :help abbreviations
>
> - full-id
> the {lhs} consists of keyword characters only
> - end-id
> the last character, but none of the others, is a keyword char.
> - non-id
> the last character is not a keyword char, the rest can be anything
> except whitespace.
>
> @ is non-id
> @a is end-id
> @au or @aut or @author are not valid abbreviations.
>
> (letters, but not @, are keyword characters).
>
> Conclusion:
>
> :abbrev @author {rhs}
>
> is invalid for any value of {rhs}. The answer to your question is:
> you can't.
How does vim handle when isk changes so that some existing abbreviations
are no longer valid or change from one type of abbreviation to another?
At first glance, this seems like a bug in the design.
Note that this thread started because someone got an error when defining
an abbrev in one instance but not in another. If changing isk after the
fact simply made some existing abbrev's stop working without any error,
that would be even more confusing and harder to track down.
...Marvin
--
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:
Post a Comment