Common Lisp + ViM woes


Results 1 to 6 of 6

Thread: Common Lisp + ViM woes

  1. #1
    Join Date
    Jan 2004
    Posts
    407

    Common Lisp + ViM woes

    decent script/plugin for vim + lisp

    I'm attempting to "learn" lisp (gotta say, i'm not that impressed so far, but i'm also sure that's due to my own incompetence, it's such a leap from procedural languages, and i can't get over all those damn parenthesis ;p ). This is mostly because i want something better then 'r', gnuplot, and the various closed source math programs. I'm looking for the vim equivelant of DoPerl for lisp, i found something like it on vim.org and it seems to work about 1/3 of the time, other times i get mad amounts of error messages, and i really don't want to deal w/ fixing it myself esp considering i don't even really understand functional programming yet :/. The errors are vim oriented not lisp, for instance i cant close the interp. window that opens or it will never reopen, etc...

    I'm considering attempting to use emacs for lisp since they are so integrated apparently, but I've spent a _lot_ of time getting proficient in vim, and can't see myself working nearly as well in any other editor.

    Any suggestions?
    DISCLAIMER: sometimes i use a text browser, so I may not see any emoticons directed at me.

    Brandon Niemczyk <bniemczyk@snprogramming.com>
    http://bniemczyk.is-a-geek.com

  2. #2
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Are you trying to write Lisp in vim? I found that it works fairly well without any other addons for what I was doing at the time (my Programming Languages class, which was almost entirely Common Lisp, and later AI, which was entirely Common Lisp).

    Or are you trying to use Lisp to modify vim behavior? Generally, it's better to do that in vim's native language if possible (and it generally is possible). If you were using emacs now, it would definitely be easy to use Lisp to modify it (well.. elisp anyway), since the vast majority of emacs already is written in elisp.

    I've never seen DoPerl, so I basically have no idea what you're trying to do...

  3. #3
    Join Date
    Jan 2004
    Posts
    407
    ahh, i'll explain a little better, sorry i was half-drunk at the time of the OP ;p

    DoPerl is part of the perlinterp that can be built into vim, you can highlight some perlcode in one of your editing windows, and then run just that snippet, or you can put perl code into the command mode. You can configure it to output code into a new window and all kinds of cool stuff. It sounds rather pointless i know, but it comes in _very_ handy for testing out those oh-so-crazy regex's and etc... that can be a b*tch to read at times.

    The reason I'm looking for something like this w/ Lisp is just because I'm finding a pita to read the syntax (mostly because I'm not used to it), that will change eventually I'm sure but while I'm learning it would be very useful. I guess it's not really that important, just thought I'd see if anyone knew of anything.

    One more question, are there any docs you would recommend for learning Lisp?
    DISCLAIMER: sometimes i use a text browser, so I may not see any emoticons directed at me.

    Brandon Niemczyk <bniemczyk@snprogramming.com>
    http://bniemczyk.is-a-geek.com

  4. #4
    Join Date
    Feb 2004
    Location
    austin, tx
    Posts
    145
    A couple freely available books that I've found helpful:

    Common Lisp: A Gentle Introduction to Symbolic Computation
    http://www-2.cs.cmu.edu/~dst/LispBook/

    Basic Lisp Techniques
    http://www.franz.com/resources/educa...ooper.book.pdf
    Roses are red, violets are blue. All my base, are belong to you.

  5. #5
    Join Date
    Jan 2004
    Posts
    407
    thanks
    DISCLAIMER: sometimes i use a text browser, so I may not see any emoticons directed at me.

    Brandon Niemczyk <bniemczyk@snprogramming.com>
    http://bniemczyk.is-a-geek.com

  6. #6
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Ooooooh, I see.

    Hmm... no, I don't really have any way of doing that from inside a vim buffer. However, you can have a vim buffer open, and then have a clisp session (or whichever Lisp you're trying to learn) open in another terminal, and do your lisp testing in the other terminal. That's what I did, anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •