Monday, March 17, 2014

Re: Automatic completion from word list

On 2014-03-08 04:07 -0800, lith wrote:
> > 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.
>
> I'm currently working on a plugin[1] that can be configured to
> fit your example to some extent:
>
> let g:likelycomplete#select_imap = '<c-s-space>'
> let g:likelycomplete#use_fuzzy_matches = 1
> let g:likelycomplete_filetypes = ["your filetype"]
> let g:likelycomplete#other_sources = ['g:my_words']
> let g:my_words = ['automatically']
>
> This allows you to type
>
> atmcy
>
> On <c-s-space> users will be presented a list of possible
> completions, including "automatically". (There is also an
> option to use <c-x><c-u> but that's less useful for long
> lists.)
>
> It's not the typical use case of that plugin though. :-)
>
> [1] https://github.com/tomtom/likelycomplete_vim

Thank you. I'd like to try it but I'm perplexed by the
installation instructions. Is there any particular reason why
https://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT
suggests installing as a Pathogen bundle while
https://github.com/tomtom/likelycomplete_vim/blob/master/doc/likelycomplete.txt
only talks about vimballs (of which I see none under
https://github.communicate/tomtom/likelycomplete_vim/) ?

This may be a trivial question to those in the know but I'm
confused by the zoo of installation methods for Vim add-ons /
plug-ins / scripts / whatever they're called. At this moment,
freedom from choice is what I want. <g>

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

Post a Comment