Lisp in Vim with Slimv or Vlime
susam.in
susam.in
All I did was set up two keybindings; one that opens a terminal buffer and starts SBCL, and one that copy-pastes the expression around the cursor into that terminal buffer, executes it and jumps back. Worked surprisingly well and allowed me to edit Lisp code in a file while being able to quickly run it on the side.
I do recommend using a plugin like rainbow parentheses, I find that helpful in all languages but especially in Lisp.
Can you share your two keybindings with us?
Open a terminal running SBCL on the right with "\ls":
nmap <leader>ls :vsplit<CR><C-w>l:terminal<CR>i sbcl<CR><C-\><C-N><C-w>h
Execute paragraph around cursor with "\e": nmap <leader>e vipy<C-w>lpi<CR><C-\><C-N><C-w>h[1] http://stevelosh.com/blog/2018/08/a-road-to-common-lisp/
git clone https://github.com/kovisoft/slimv.git ~/.vim/bundle/slimv
echo 'set runtimepath^=~/.vim/bundle/slimv' >> ~/.vimrc
vim +'helptags ~/.vim/bundle/slimv/doc' +q
Is this a common way of installing Vim plugins?My plugin manager is Vundle, where you basically just add a line in the .vimrc with the repository name, and then run :PluginInstall. Quick and easy.