Using Vim for Lisp development

前端 未结 11 2049
悲&欢浪女
悲&欢浪女 2020-12-22 17:23

I\'ve been using Lisp on and off for a while but I\'m starting to get more serious about doing some \"real\" work in Lisp. I\'m a huge Vim fan and was wondering how I can be

相关标签:
11条回答
  • 2020-12-22 17:39

    Here's a cool diagram by Xach that sums up the current situation.

    diagram explaining that there are nearly no VIM users that are also Lisp programmers and can also hack it to make it a good Lisp IDE... lousy alt text :)

    0 讨论(0)
  • :set lisp

    Vim has a mode to help you indent your code by Lisp standards.

    Also, I modify the lispwords to change how vim indents my code.

    :setl lw-=if (in ~/.vim/ftplugin/lisp.vim)

    0 讨论(0)
  • 2020-12-22 17:45

    I know you said not to tell you to use Emacs.

    Use Emacs.

    Serious, the SLIME setup for Emacs is pretty much the standard development platform for Lisp, and for very good reason.

    0 讨论(0)
  • 2020-12-22 17:48

    You might give slimv a break.

    0 讨论(0)
  • 2020-12-22 17:51

    You can give Emacs with Vim emulation a try, is not perfect, but it may be somewhat familiar. I think Lisp shines if you use something like Slime or DrScheme doing iterative development, all other editors feel just wrong.

    0 讨论(0)
  • 2020-12-22 17:54

    SLIME for EMACS is a wonderful tool for LISP programming. The best part is sending code written in your editor straight to a live LISP session. You can get similar behavior out of Vim using the tips here:

    http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/

    I adjusted my own script so that I can send to either a SBCL or Clojure session. It makes you much more productive and takes advantage of the REPL.

    ":set lisp" starts the lisp indentation mode for Vim. But it won't work with some dialects like Clojure. For Clojure, use VimClojure.

    Some people like LIMP also.

    0 讨论(0)
提交回复
热议问题