Closed conor-f closed 2 years ago
TBH, I have never used any plugin manager, but other users reported that they installed and used slimv with pathogen or vundle. Maybe I can try to assist you if you tell what kind of problems you had.
Thank you for your fast response!
I added the line Plug 'kovisoft/slimv'
to my .vimrc
and then opened up a new instance of vim
and ran :PlugInstall
which says it successfully installed slimv. However, when I open a file (e.g. test.rkt
or test.lisp
) I don't see any REPL open up and any ,
commands have no effect (e.g. ,b
which I think should run the buffer?)
I have /usr/share/common-lisp/source/slime/start-swank.lisp
also after running sudo apt install slime
.
You can try out my setup by cloning this branch of my repo: https://github.com/conor-f/vim-stuff/tree/slimv and running make slimv_install
. This shouldn't affect your existing vim setup, but take precautions anyways if you can't readily reproduce your current setup!
On a virtual machine I created an empty .vim/
directory and an empty .vimrc
file. The I did everything as described in the Plug documentation:
.vim/autoload/
directory.vim/autoload/
using the curl command from the documentationcall plug#begin()
Plug 'kovisoft/slimv'
call plug#end()
.vimrc
:PlugInstall
commandvim test.lisp
:scriptnames
that the slimv scripts were loaded,c
and the swank server was started in a new window, then the REPL buffer was opened (please note that the REPL buffer is not automatically opened upon vim startup)I checked the directory structure and the slimv files were downloaded into .vim/plugged/slimv/
in the usual vim hierarchy (ftplugin, indent, plugin, syntax, etc subdirectories). You don't need to install a separate slime, it is also contained in .vim/plugged/slimv/slime/
.
I suggest that you try to repeat the above steps. When you finally load a .lisp file into vim, then check what scripts are loaded via :scriptnames
.
Thank you for making such an effort to reproduce my issue :)
Using your detailed description, I think I narrowed down the issue slightly. I use i3 + Ubuntu 20.04 and didn't have xterm
installed. After installing xterm
and using ,c
to connect when within a Lisp file, I had better results :) Two follow up questions though:
1) :echo SlimvSwankCommand()
outputs ! SWANK_PORT=4005 xterm -iconic -e "sbcl" --load "/home/conor/Code/vim-stuff/.vim/plug_plugins/slimv/slime/start-swank.lisp" &
which seems correct, but it causes a new xterm
window to pop up which needs to be manually closed when finished with. Is it supposed to be running in the background or is this expected behavior?
2) I tried using ,c
when editing a file named test.rkt
to see if it would work with racket
but it didn't have any reaction. Does slimv support racket? Or just Scheme?
.vimrc
file in order to identify .rkt files as scheme files:au BufNewFile,BufRead *.rkt setf scheme
Thanks for your help kovisoft :) I understand slimv better now and how to use it.
Is there any way to install slimv using a plugin manager like
Plug
? I haven't had any luck yet installing it from following the instructions.