Wednesday, September 15, 2010

Re: Supplying common word endings

On 2010-09-15 08:33 -0700, Gary Johnson wrote:
> 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.

Right. One abbreviation per (stem, suffix) makes :ab so verbose
as to be useless. That's what I'm doing now, though. It's hard
to factorise because English is not very regular.

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

And get RSI faster.

Subliminal message : Vim needs arbitrary tab stops.

--
André Majorel http://www.teaser.fr/~amajorel/

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