我正在使用Eclim和Vim以及Neocomplete插件,但omnifunc根本不适用于我。
我的环境似乎已正确设置,因为当我尝试测试其环境的Eclim函数时,所有内容似乎都已正确配置。
:PingEclim
产生这些结果
eclim 2.5.0
eclipse 4.5.1
:EclimValidate
Result: OK, required settings are valid.
我认为这是我的~/.vim/plugin/eclim.vim
,由eclim安装程序自动生成
let g:EclimCompletionMethod = 'omnifunc'
if !exists('g:neocomplete#force_omni_input_patterns')
let g:neocomplete#force_omni_input_patterns = {}
endif
let g:neocomplete#force_omni_input_patterns.java = '\%(\h\w*\|)\)\.\w*'
文件类型似乎已正确识别,文件类型已启用
:filetype
filetype detection:ON plugin:ON indent:ON
似乎在我输入时正确调用omnicomplete
,例如import org.
打印错误
-- Omni completion (^O^N^P) Pattern not found
此外<C-x><C-u>
带来
E764: Option 'completefunc' is not set
Vim信息如下
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 11 2015 20:44:58)
MacOS X (unix) version
Included patches: 1-936
Compiled by Homebrew
Huge version with MacVim GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_binary
+arabic +find_in_path -mouse_sysmouse +tag_old_static
+autocmd +float +mouse_urxvt -tag_any_white
+balloon_eval +folding +mouse_xterm +tcl
+browse -footer +multi_byte +terminfo
++builtin_terms +fork() +multi_lang +termresponse
+byte_offset +fullscreen -mzscheme +textobjects
+cindent -gettext +netbeans_intg +title
+clientserver -hangul_input +odbeditor +toolbar
+clipboard +iconv +path_extra +transparency
+cmdline_compl +insert_expand +perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui +lua +rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind -X11
+dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
+farsi +mouse_netterm +syntax
任何帮助?