by alpaca128 · 6y ago · 0 comments
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