I'm using MacVim (kind of gvim for OSX) and try to get the slimv plugin running. Sadly it's not working out of the box. In fact, it does not start up at all.
My setup:
- MacVim (32bit cause of this) (vim 7.3)
- :scriptnames does not list
ftplugin/slimv.vimwhileplugin/paredit.vimis listed - :set ft? shows
filetype=lispfor .lisp files - :messages shows no errors
- :filetype
filetype detection:ON plugin:ON indent:ON - :echo g:paredit_loaded
1 - :echo g:slimv_loaded
E121: Undefined variable: g:slimv_loaded \ E15: Invalid expression: g:slimv_loaded - compiled with +python (2.7)
SBCL and slime are installed - works flawless with emacs.
I tried it with and without let g:slimv_swank_cmd = ... in .vimrc and changed the line recommended on the plugin page from
let g:slimv_swank_cmd = '!osascript -e "tell application \"Terminal\" to do script \"sbcl --load ~/.vim/slime/start-swank.lisp\""'
to
let g:slimv_swank_cmd = '!sh -c "sbcl --load /Applications/MacVim.app/Contents/Resources/vim/runtime/slime/start-swank.lisp" &'
since the osascript was not working and I don't know how to fix it. But a similar call to xterm is sufficient for Linux so my sh call should be fine. Well, I got no idea what to try next. :/
The problem got solved by installing slimv to ~/.vim instead of the vim ebedded in MacVim. Maybe some kind of bug? However, Common Lisp + vim - I just love it.
osascriptcommand -- that opens a new Terminal window which owns the LISP session. - Alex Martini.vimrcfile, I haveg:slimv_swank_cmd = "! osascript -e 'tell application \"Terminal\" to do script \"/sw/opt/sbcl-1.0.47/bin/sbcl --load ~/.vim/slime/start-swank.lisp\"'"-- you have to tell Terminal to run the script, not MacVIM like your first line shows. Alternately, try running thesbcl --load .../start-swank.lispcommand in a Terminal window first and then starting slimv. It should be able to connect to an already-running instance instead of starting its own. - Alex Martini