Comments on Lisp in Vim

Post Comment

dcassett said:

IMHO a very well-written article with great attention to detail. I especially liked the section on paredit with its step-by-step explanation.

08 Dec 2019 14:55 GMT (#1 of 9 comments)

lancebeet said:

I wonder why the author doesn't mention the plugin vim-slime, given that it seems to be more popular than either Slimv or Vlime on GitHub. From what I can gather, Slimv and Vlime are more focused on Lisp with built-in completion and debugging whereas vim-slime is language agnostic and simply recreates just the "connected REPL" behavior of Slime.

08 Dec 2019 15:56 GMT (#2 of 9 comments)

Susam Pal said:

The "vim-slime" plugin is not appropriate for my blog post because it is nothing like SLIME. In fact, the word "slime" in "vim-slime" is poorly chosen. It supports none of the SLIME features. It does not even provide the "connected REPL" experience like SLIME, Slimv, or Vlime does. Here are the major reasons why vim-slime is very limited and insufficient as a Lisp development environment when compared to SLIME, Slimv, or Vlime:

  1. It does not understand s-expressions. It can only send the current text paragraph or text selected in visual mode to a terminal running in GNU Screen, tmux, Neovim, etc. Therefore, it cannot send, say, only the current expression or an entire function definition or a top-level form to the terminal.
  2. Since it is language-agnostic and really only sends text from a buffer to a terminal, it does not care whether the text is code or prose. It also does not care if the terminal is running a Unix shell or a REPL. It is the user's responsibility to ensure that the correct REPL is running on the terminal and the corresponding code is being sent from Vim using vim-slime.
  3. Since it does not implement the client-server architecture that SLIME and Swank implement together, it has none of the interactive debugging features of SLIME. It cannot automatically launch the integrated Slime Debugger (SLDB) when an unhandled condition occurs. As a result, all debugging features like inspecting code, inspecting variables, etc. are missing.
  4. Almost all of the SLIME features are missing from it. It does not support displaying argument lists as we type function calls, Common Lisp HyperSpec (CLHS) lookup and completion, describing symbols, cross-referencing, etc.
  5. It does not provide any key-bindings for common tasks such as macro expansion, function tracing, etc.

Swank server is an integral component of SLIME. It is essential to the way SLIME works. A plugin that does not talk to Swank server can hardly be anything like SLIME. Slimv and Vlime on the other hand talk to the same Swank server that SLIME talks to. Slimv and Vlime are re-implementations of the client component of SLIME. They send SLIME commands to Swank just like SLIME does. As a result, Slimv and Vlime are able to support a good portion of the features available in SLIME.

08 Dec 2019 18:32 GMT (#3 of 9 comments)

lancebeet said:

Thank you for the explanation.

08 Dec 2019 19:49 GMT (#4 of 9 comments)

Dennis Ng said:

Such a great article.

I really wish though there is a button to turn on and off so one can read only about Slimv or Vlime or both.

20 Apr 2021 04:10 GMT (#5 of 9 comments)

Aqezz said:

This is great! I just recently started using Vlime and had been starting SBCL externally but your \rr hotkey has just saved me lots of annoyance!

Same with the interactive debugging, I didn't know you could inspect the call stack like that and evaluate stuff! I only knew about choosing restarts. Thanks for this write up!

09 Jan 2022 01:03 GMT (#6 of 9 comments)

Goutham Bharadwaj said:

This is a great article! Thank you so much!

22 Aug 2022 16:23 GMT (#7 of 9 comments)

Cassepipe said:

I love the level of details of this write-up.

It assumes nothing and tries really hard to avoid you any papercuts. I wish I had found when I tried to learn Lisp. Between learning the language and all the papercuts I just gave up like I did for so many other niche things that caught my interest.

24 Feb 2024 16:34 GMT (#8 of 9 comments)

Aweso said:

Still the best article on setting up Vim with lisp in 2024. Great resource!

25 Feb 2024 04:04 GMT (#9 of 9 comments)
Post Comment