> On a related note, do you know how I can get completion for more than
> just the first argument?

It really seems you have to take some extra measures. A and L always
contain the whole line:


function! NM_list_all_tags(A,L,P)
    let tags = ["foo", "bar"]
    let word = matchstr(a:A, '\S*$')
    let wlen = len(word)
    if !empty(word)
        call filter(tags, 'v:val[0 : wlen - 1] ==# word')
    endif
    call map(tags, 'a:A . strpart(v:val, wlen)')
    return tags
endfunction

echo input('Select tag(s)', '', 'customlist,NM_list_all_tags')


Not sure if there is an easier solution for that problem.

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to