Hi
I have written the following custom complete function

function! NM_list_all_tags(A,L,P)
                return system('notmuch search-tags')
endfunction

for use with this function:

function! s:NM_show_add_tag()
        let tags = input('Select tag(s)', '',
'custom,NM_list_all_tags()')
        let id = <SID>NM_show_message_id()
        call <SID>NM_add_remove_tags([id], '+', tags)
endfunction

I have added a keybinding on '+' that does this: ':call
<SID>NM_show_add_tag()<CR>''

Now when I press the key I get

Error detected while processing function <SNR>34_NM_show_add_tag:
line    3:
E117: Unknown function: NM_list_all_tags()


But when I enter the completion function directly like so it works:

 :echo NM_list_all_tags('','','')


Where do I have to put the custom complete function so it will be
found?

Thanks in advance

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

Reply via email to