From: Christian Brabandt Date: Fri, 8 Aug 2025 11:43:35 +0000 (+0200) Subject: runtime(c): set omnifunc only for Vim, since it is Vim9 Script X-Git-Tag: v9.1.1609~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b89ff6c2e125db413361a3e8abe3f43dcb5b412e;p=thirdparty%2Fvim.git runtime(c): set omnifunc only for Vim, since it is Vim9 Script related: #17871 Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/c.vim b/runtime/ftplugin/c.vim index 915861b8d5..42a435f1df 100644 --- a/runtime/ftplugin/c.vim +++ b/runtime/ftplugin/c.vim @@ -1,8 +1,7 @@ " Vim filetype plugin file " Language: C " Maintainer: The Vim Project -" Last Change: 2023 Aug 22 -" 2024 Jun 02 by Riley Bruins ('commentstring') +" Last Change: 2025 Aug 08 " Former Maintainer: Bram Moolenaar " Only do this when not done yet for this buffer @@ -28,7 +27,7 @@ setlocal fo-=t fo+=croql setlocal commentstring=/*\ %s\ */ define& include& " Set completion with CTRL-X CTRL-O to autoloaded function. -if exists('&ofu') +if exists('&ofu') && has("vim9script") setlocal ofu=ccomplete#Complete endif