Dear Vim-Dev,

I wrote my first omni completion function today and I quickly noticed
that the basic completion function of 20 lines has about 16 static
lines that are usually reused in every basic completion function.

In the most basic function, where provided matchings are shown in the
list as well, only the source of matching candidates vary. That would
mean that people copy 20-line function form and then edit minimal
amount of lines in there. Vimscript doesn't support currying so I
wonder if there ought to be a basic omni completion widget that would
take a list of possible completions as argument, and handle the rest?
The user only has to provide a list of candidates.

The reasoning is that it would encourage users to write small and
productive completion scripts to small one-file projects. The major
shells support that kind of a bare completion system and it works okay
for the simple tasks.

--Mikael

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui