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 - Yasuhiro Matsumoto -- 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