On 2011-12-26 06:59 +0100, Tony Mechelynck wrote: > On 26/12/11 06:46, Andre Majorel wrote: > > >Is there a way that doesn't require two abbreviations/mappings ? > >Like a notional "inoreab l [^'] le" ? > > Untested: > > :inoreab <expr> l v:char == ' ' ? 'le' : 'l'
Works fine, thank you. > Of course you couldn't then type "l bonne avoine" for "la bonne > avoine". Vim doesn't (yet ;-) ) know anything about grammatical > gender. Could add that information to my list but you need to be able to delay the expansion of an abbreviation and I have no idea how you'd do that. -- André Majorel http://www.teaser.fr/~amajorel/ Subliminal message : Vim needs arbitrary tab stops. -- 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
