[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Scheme Code beautifier

From: Christian Kellermann
Subject: Re: [Chicken-users] Scheme Code beautifier
Date: Sat, 4 Dec 2010 11:49:33 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hi Imran!

* Imran Rafique <address@hidden> [101204 02:51]:
> Christian,
> I don't think calling an outside script is really necessary for vim.
> When the cursor is on the opening parenthesis of an sexpr, then =%
> will reformat the entire sexpr correctly (of course, you need to make
> sure that 'lispwords' setting is up to date)
> If it helps, here are a couple of vimscript functions I use to quickly
> reformat code. As I code in different lisp dialects (chicken, and
> clojure), these functions are in
> ~/.vim/after/ftplugin/common/lisp.vim, which is sourced by
> after/ftplugin/scheme.vim or after/ftplugin/clojure.vim.
> (PS: I stick my name in variables and functions I define in vim, to
> avoid possible namespace clashes with other plugins)
> (PPS: It feels somehow dirty posting some vimscript to a scheme mailing list)

Thanks for these snippets! I will put them in the vim section of
the wiki. My friend is using the old 'vi' though, so no customisation
possible :) I do think that this will ease the situation for vim
people though.

Thanks again!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]