尝试在vim中设置壁炉,但遇到一些错误信息。
当我在clojure缓冲区中输入cpr
时,出现以下错误:
Error detected while processing function <SNR>53_RunTests..fireplace#capture_te
st_run..<SNR>53_eval..fireplace#client..fireplace#platform..fireplace#register_
port_file..fireplace#nrepl_connection#open..fireplace#nrepl#for..<SNR>75_nrepl_
process..<SNR>75_nrepl_message..<SNR>75_nrepl_call..<SNR>74_nrepl_transport_cal
l..<SNR>74_nrepl_transport_dispatch:
line 6:
E605: Exception not caught: nREPL: zsh:1: command not found: python^@
Error detected while processing function <SNR>53_RunTests..fireplace#capture_te
st_run..<SNR>53_eval..fireplace#client..fireplace#platform:
line 9:
E171: Missing :endif
我明白的是它找不到python。在我的shell中,我可以用python
命令启动python,它将启动3.4.2。
我用nixos
:echo has('python')返回0
echo $PATH and:!echo $PATH返回相同的路径
我该怎么做才能找到导致这个错误的真正原因?
您必须安装/编译带有python支持的vim才能使vim-壁炉工作,这可能不是您系统上的默认设置。我相信输入:help python
会帮你解决这个问题。如果你没有得到任何东西,你可能需要用python支持重新编译vim,为此我建议你现在使用Google。
如果您安装了pip,另一个选择是考虑切换到neovim。使用pip install neovim
安装neovim将获得python支持。我最近一直在用neovim,它对我很有效。