From: Nikolai Weibull Date: 2003-10-11T09:05:37+09:00 Subject: Re: Project suggestion: Ruby code indenter * Gavin Sinclair [Oct, 11 2003 01:50]: > [me asking if it would be like indent(1)] > > Precisely like indent. Say it were called 'rindent', then from within > Vim (or any editor; that's the point) you can run > > :%!rindent > > and have it done nicely. Obviously you're still going to use your > editor's indenting features as you type and want to correct small > blocks. > OK. The good thing with Ruby, over C, for this kind of thing is that most people seem to keep to a rather similar way of 'type-setting' their programs. We could perhaps use this to our advantage somehow. > > Also, Nikolai, I thought this would be perfect for you, as you have > already done it in VimL :-* and are gearing up to do it in pcpEdit in > Ruby ;) > Haha, OK. I'll see what I can do. I've always wondered if it would be possible to do this kind of thing with a yacc/racc or such similar. pcpEdit heh. That will not be the official name ;-). I'm thinking of 'ned', for Nikolai EDitor, or simply the name Ned (as in Flanders) in tribute of editors such as Sam, Wily, and family. Other, more silly/stupid names were scamacs (emacs spelled backwards prepended to emacs, with e's removed) and scam-e (emacs spelled backwards). And also, I haven't decided on Ruby yet, but yes, it will probably be Ruby actually. I think it can work rather well. nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}