Wednesday, September 15, 2010

Re: Supplying common word endings

On Sep 15, 4:23 pm, Andre Majorel <aym-...@teaser.fr> wrote:
> 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 Majorelhttp://www.teaser.fr/~amajorel/


Ah, I see. I did think for a split second you might be looking for
some general method of using the function keys to apply "typical" word
endings to some set of words (for the entire language???) , but I
dismissed the thought, because it just seemed impossible. English
simply isn't that predictably inflected. Might work for Esperanto...

Good luck

BC

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