按指示安装,我在启动 vi 时收到错误消息:
Error detected while processing function ghcmod#util#check_version:
line 2:
E117: Unknown function: vimproc#system
line 3:
E117: Unknown function: vimproc#get_last_errmsg
E116: Invalid arguments for function matchlist(vimproc#get_last_errmsg(), 'version \(\d\+\)\.\(\d\+\)\.\(\d\+\)')
E15: Invalid expression: matchlist(vimproc#get_last_errmsg(), 'version \(\d\+\)\.\(\d\+\)\.\(\d\+\)')
line 4:
E121: Undefined variable: l:m
E15: Invalid expression: l:m[1 : 3]
line 5:
E121: Undefined variable: s:ghc_mod_version
E116: Invalid arguments for function map
line 9:
E121: Undefined variable: s:ghc_mod_version
E15: Invalid expression: a:version[l:i] > s:ghc_mod_version[l:i]
E121: Undefined variable: s:ghc_mod_version
E15: Invalid expression: a:version[l:i] > s:ghc_mod_version[l:i]
E121: Undefined variable: s:ghc_mod_version
E15: Invalid expression: a:version[l:i] > s:ghc_mod_version[l:i]
Press ENTER or type command to continue
作为回应,:GhcModCheck
我得到:
function ghcmod#command#make..ghcmod#make..<SNR>25_plineopen2, line 2 Vim(let):E117: Unknown function: vimproc#plineopen2
Error detected while processing function ghcmod#command#make:
line 7:
E714: List required
我的环境是 Ubuntu 13.4,我已经在 Sublime 文本中运行了 ghc-mod。
ftplugin
存在并启用 ( filetype detection:ON plugin:ON indent:ON
)。
我从 git 构建 vimplugin 并将文件作为描述复制到 .vim (看起来唯一实际的编译是 build vimproc_unix.so
)。然后我下载 ghcmod-vim-1.0.0.zip 并将其内容解压缩到 .vim 中(即在 .vim 下创建自动加载和插件目录。