Friday, March 7, 2014

Automatic completion from word list

I would like to be able to type the first letter and some others
of a word and have Vim automatically pull the matching word from
my word list.

E.G. I type "atmcy" then space or punctuation and
"automatically" is inserted because that's the match for
/^a.*t.*m.*c.*y/ in the word list.

Bonus points if there is a way to resolve ambiguities with a
minimum number of keystrokes.

More bonus points if suggestions are sorted by frequency in a
corpus (I have that datum and can include it in the word list).

Even more bonus points if the frequency in the current buffer
can also be taken into account.

Do you know of a script that does that sort of thing ? Thanks in
advance.

--
André Majorel http://www.teaser.fr/~amajorel/
Subliminal message : Vim needs elastic 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: