On Monday, January 21, 2013 3:56:48 AM UTC-6, Aaron Webster wrote:
> Hi all, I'm looking for a way to use regular expressions in abbreviations.  
> For example,
> 
>     :iab \([0-9]\{-}\)nm \\SI{\1}{\\nano\\meter}
> 
> would would expand every instance of, '50nm' to '\SI{50}{\nano\meter}'.  Is 
> this possible?  It's been suggested to imap a regular function, but this is 
> not so satisfying.

It *might* be possible  to change the preceding text as you desire using an 
<expr> based abbreviation on "nm". It would be easier with a mapping. What you 
cannot do is specify abbreviations or mappings using regular expressions as you 
are trying to do above.

-- 
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

Reply via email to