What makes Lisp special is that executable code has the same syntax as data structures.

What makes Vim special is that the mode for entering text uses the same keys as the mode for executing commands.

Both Lisp and Vim have very powerful macro systems.

Both Lisp and Vim rock my socks off.

Comments (3)

  • alinrus says:

    in that case you’d be surprised what emacs can do ;)

    • scribu says:

      If you’re referring to the “rocks my socks off” remark, that’s just flame bait. I know emacs is a great editor.

      If you’re referring to macros, please surprise me. :)

      For example, in vim, I can record a macro, paste it into a buffer, edit it as a string and then execute it.

      • alinrus says:

        Don’t take it personal, but forgive me if I’m not impressed by the capabilities of vim. It’s nice I use it to edit small config files, and that’s it.

        Macros are by no means more powerful in vim. Emacs is Lisp, so if you want to be mindblown by Lisp macros take a look at LOL. In the editor context they’re just glue for the editors builtin functions, so yeah it gets interesting when your editor and the extension language are one and the same. You can’t possibly compare vim script to Lisp, just think at the amount of bindings Lisp has. Heck if you’d want to you can even play with X11 windows, a shell that understands Lisp code and returns lisp data that you can manipulate in any way you want, sockets, framebuffers.

Respond / add a comment


Subscribe without commenting