安装 slimv 出错

Error installing slimv

我正在尝试在 macOS Sierra 下使用 slimv, which is recommended in the answer for 。但是,当我将此插件安装到 ~/.vim/plugin 和 运行 vi test.lisp 时,出现以下错误。漂亮的 "Slimv" 菜单也没有显示。

sunqingyaos-MacBook-Air:plugin sunqingyao$ vi ~/.vimrc 
Error detected while processing /Users/sunqingyao/.vim/plugin/ftplugin/clojure/slimv-clojure.vim:
line  196:
E117: Unknown function: SlimvInitBuffer
Press ENTER or type command to continue

请注意,目前我的 MacBook Air 上没有安装 Clojure。我想做的就是在 vim.

中调试一些 mit-scheme 程序

这里是~/.vimrc的相关部分:

let g:slimv_swank_cmd = '!osascript -e "tell application \"Terminal\" to do script \"mit-scheme --load ~/.vim/plugin/slime/start-swank.lisp\""'

vim 的版本信息:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 13 2016 21:22:16)
Included patches: 1-898
Compiled by root@apple.com

我是一个vim新手,对vim脚本不是很了解,请详细解释一下

你不应该把它安装到 ~/.vim/plugin,你应该把它安装到 ~/.vim,因为 slimv 在 plugin 之外的其他 vim 目录中有文件(例如 ftpluginindentsyntax 等)。