2

我正在使用 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

有什么帮助吗?

4

0 回答 0