Closes: https://bugs.gentoo.org/330187
Courtesy of Florian Crouzat <gentoo@floriancrouzat.net>
Package-Manager: Portage-2.3.8, Repoman-2.3.3
endif
" }}}
+" Enable Omni completion when opening a file only if a specific plugin does
+" not already exist for that filetype. This allows Omni completion
+" (Ctrl-x/Ctrl-o) to work with any programming language if and only if a syntax
+" file exists for the said language.
+if exists("+omnifunc")
+ autocmd Filetype *
+ \ if &omnifunc == "" |
+ \ setlocal omnifunc=syntaxcomplete#Complete |
+ \ endif
+endif
+
" vim: set fenc=utf-8 tw=80 sw=2 sts=2 et foldmethod=marker :