使用vim编辑java文件时,未知选项java complete#complete

时间:2012-02-22 05:14:21

标签: linux vim vim-plugin

我在.vimrc文件中设置了omnifuc:

setlocal omnifunc = javacomplete#complete

然后在编辑任何文件时出现异常:

E518: Unknown option: javacomplete#complete

1 个答案:

答案 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.