Hi Imran! * Imran Rafique <[email protected]> [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! Christian _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
