From b89ff6c2e125db413361a3e8abe3f43dcb5b412e Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Fri, 8 Aug 2025 13:43:35 +0200 Subject: [PATCH] runtime(c): set omnifunc only for Vim, since it is Vim9 Script related: #17871 Signed-off-by: Christian Brabandt --- runtime/ftplugin/c.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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