[slim-vim] vim indentation
Brad Beveridge
brad.beveridge at gmail.com
Wed Mar 22 18:19:28 CST 2006
Off the top of my head, I don't see why Vim+ECL can't do the
indentation. The two issues that we might have are
1) Autoindent
2) Are we able to use the default = key?
Other than that, we should just be able to use Slime's indent code.
Brad
On 3/22/06, Stephen Horner <sphorner at gmail.com> wrote:
> Ok, I'll be very honest; I cannot for the life of me see myself
> committing to learning exactly how to write a new
> ~/.vim/indent/lisp.vim file to indent lisp code properly. I've looked
> through a few examples like ruby's and pythons, and ran away (crying I
> might add.). What I would like to know is how doable it would be to
> do something similar to what we currently do with \es except have it
> pass the sexpr to ecl(?) to format the expression, and then have it
> replace the current code?
>
> An example of why I think fixing the vim lisp indentor is the
> following code from the allegroserve tutorial...
> (publish :path "/hello-count"
> :content-type "text/html"
> :function
> (let ((count 0))
> #'(lambda (req ent)
> (with-http-response (req ent)
> (with-http-body (req ent)
> (html
> (:html
> (:head (:title "Hello Counter"))
> (:body
> ((:font :color (nth (random 5)
> '("red" "blue"
> "green" "purple"
> "black")))
> "Hello World had been called "
> (:princ (incf count))
> " times")))))))))
>
> Nice, and purdy. And now how it looked when I wrote it in vim...
>
> (publish :path "/hello-count"
> :content-type "text/html"
> :function
> (let ((count 0))
> #'(lambda (req ent)
> (with-http-response (req ent)
> (with-http-body (req ent)
> (html
> (:html
> (:head (:title
> "Hello Counter"))
> (:body
> ((:font :color
> (nth (random 5)
>
> '("red" "blue"
>
> "green" "purple"
>
> "black")))
> "Hello World had
> been called "
> (:princ (incf count))
> " times")))))))))
>
> As you can see (and I assume many of you are already well aware of)
> this is simply awful. I know I cannot complain since this is "free"
> software, but MAN (lol sorry) this is bad.
>
> Anyways any suggestions would be great.
>
> Regards,
>
> Stephen Horner
> _______________________________________________
> slim-vim mailing list
> slim-vim at lispniks.com
> http://www.lispniks.com/mailman/listinfo/slim-vim
>
More information about the slim-vim
mailing list