Lonely Rolling Star wrote:
I found a previously supplied answer (see below).
I think some mention of "filetype plugin on" should really be included in
the help for omni completion.
--------------------------------
E764: Option 'omnifunc' is not set.
You have to put "filetype plugin indent on" in your .vimrc file
(or without the "indent" part). Although this function is
explained elsewhere in the docs, I don't think the omni doc
itself says that you have to do this. It mentions that the
filetype plugins will set omnifunc, but doesn't actually
mention that you need to tell vim to use these plugins.
The docs make it sound automatic.
I had the same problem, and I doubt any new user, nor anyone
who didn't already know about the :filetype command, would be
able to figure out how to get it to work.
--
View this message in context:
http://www.nabble.com/problem-using-omni-completion-t1723473.html#a4683008
Sent from the Vim - General forum at Nabble.com.
If your vimrc includes "source $VIMRUNTIME/vimrc_example.vim" (without
the quotes) it will enable filetype detection, ft-plugin and
ft-indenting at startup, as well as a lot of other useful settings. (If
some of them aren't to your liking you can override them later in your
vimrc.)
Best regards,
Tony.