我在.vimrc文件中设置了omnifuc:
setlocal omnifunc = javacomplete#complete
然后在编辑任何文件时出现异常:
E518: Unknown option: javacomplete#complete
答案 0 :(得分:1)
删除=
后的空格。有了这个空间,vim就会将javacomplete#complete
解释为vim选项。
以下是vim对:set-args
的帮助的摘录:
:se[t] {option}={value}
...
White space between {option} and '=' is allowed and
will be ignored. White space between '=' and {value}
is not allowed.