> Interestingly, if I use:
>
> iabbrev <lt>s whatever
>
> it works.
This means, when vim parses this iabbrev, it will replace the <lt>
by '<', so you trigger your abbreviation by typing <s (as you
probably already know, just want to point out the obvious).
> If I use
>
> iabbrev <lt>sg whatever
> then it fails with "Invalid argument". It looks like vim trips up if
> the abbreviation is > 2 chars if I'm using the <lt>
Again, when parsing this abbreviation, vim will replace the <lt>
by '<'. So you would need to enter <sg to trigger this abbreviation.
Now you need to know, that there are three types of abbreviations, as
detailed by :h abbreviations. You are abbreviation '<s' is of kind
end-id. But, the abbreviation <sg is of neither type, so it is invalid.
regards,
Christian
--
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