4 ms·
I experimented a little with Lisp in Vim this year but I didn't get the point of the various plugins for it to be honest. All I did was set up two keybindings;
by alpaca128 7y ago
I experimented a little with Lisp in Vim this year but I didn't get the point of the various plugins for it to be honest.
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.
- foo101 7y agoWhich plugins did you experiment with? Can you share your two keybindings with us?
- alpaca128 7y agoSure, but note they're NeoVim-specific(the terminal buffer works a bit differently there). And I adapted them to work without my other custom shortcuts, so they're longer(and even more indecipherable for sane people...I'm sure this could be done in a cleaner way). 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