diff --git a/plugin/UltiSnips.vim b/plugin/UltiSnips.vim index 6603b48..31749fc 100644 --- a/plugin/UltiSnips.vim +++ b/plugin/UltiSnips.vim @@ -11,6 +11,13 @@ if exists('did_UltiSnips_vim') || &cp || version < 700 finish endif +" Define dummy version of function called by autocommand setup in +" ftdetect/UltiSnips.vim. If the function isn't defined (probably due to +" using a copy of vim without python support) it will cause an error anytime a +" new file is opened. +function! UltiSnips_FileTypeChanged() +endfunction + if !exists("g:UltiSnipsUsePythonVersion") let g:_uspy=":py3 " if !has("python3")