Yasuhiro Matsumoto wrote: > Try following: > > function! CompleteFunc(ArgLead, CmdLine, CursorPos) > echomsg string([a:ArgLead, a:CmdLine, a:CursorPos]) > return [''] > endfunction > command! -nargs=* -complete=customlist,CompleteFunc Test : > > :Test foo<Tab> > :Test 10<Tab> > :Test -10<Tab> > :Test -<Tab> > :Test 1000000000000000000000<Tab> > :Test 010<Tab> > :mes<CR> > > ['foo', 'Test foo', 8] > [10, 'Test 10', 7] > [-10, 'Test -10', 8] > [0, 'Test -', 6] > [-559939584, 'Test 1000000000000000000000', 27] > [8, 'Test 010', 8] > > First argument a:ArgLead must be a string of leading completion. But number > is passed. > Below is a patch. Please check. > > https://gist.github.com/3087076
Thanks! I'll look into it soon. -- Corduroy pillows: They're making headlines! /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
