tags:

views:

17

answers:

0

How to match script functions (s:...) with FuncUndefined autocommand without asterisk (for exact match)? None of that does work:

execute "autocmd AutoGroup FuncUndefined s:".funcname." ".cmd
execute "autocmd AutoGroup FuncUndefined <SID>".funcname." ".cmd
execute "autocmd AutoGroup FuncUndefined <SNR>".sid."_".funcname." ".cmd
execute "autocmd AutoGroup FuncUndefined \<SNR>".sid."_".funcname." ".cmd
execute "autocmd AutoGroup FuncUndefined \x80\xFDP".sid."_".funcname." ".cmd

sid is script number obtained by s:SID() from vim help.