Wednesday, September 15, 2010

Re: Supplying common word endings

On 2010-09-15, BC wrote:
> On Sep 14, 2:21 pm, Andre Majorel <aym-...@teaser.fr> wrote:
> > Has anyone ever written a macro to enter common word endings ?
> >
> > For example, if "spe" is an abbreviation for "special" and "spec"
> > for "specify",
> >   "spe<f2>" expands to specialising,
> >   "spe<f3>" expands to specialisation,
> >   "spec<f2>" expands to specifying",  # Tricky
> >   "spec<f3>" expands to specification"...
>
> Why not simply
> :iab speg specialising
> :iab spen specialisation
> :iab spef specifying
> :iab spet specification
>
> and so forth?

Because then you would have to have an abbreviation for _every_ such
word rather than a relatively small number of function keys to
supply common endings.

As for the function key macros, in the time it would take me to
think about which function key resulted in which ending and to look
at the keyboard to hit the right key, I could just type the full
word.

Regards,
Gary

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