Error installing slimv

753 Views Asked by At

I'm trying to use slimv, which is recommended in the answer for another question of mine, under macOS Sierra. However, when I installed this plugin into ~/.vim/plugin, and ran vi test.lisp, I got the following error. The beautiful "Slimv" menu was also not shown.

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

Note that currently I don't have Clojure installed on my MacBook Air. All what I want to do is to debug some mit-scheme programs inside vim.

Here is the relevant part of ~/.vimrc:

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

Version information for vim:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 13 2016 21:22:16)
Included patches: 1-898
Compiled by [email protected]

I'm a vim newbie who don't know much about vim script, so please explain it in detail to me.

1

There are 1 best solutions below

12
On BEST ANSWER

You shouldn't install it into ~/.vim/plugin, you should install it into ~/.vim because slimv has files in other vim directories outside plugin (e.g ftplugin, indent, syntax etc).