Luke Graham
4/28/2005 2:57:00 AM
On 4/28/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
> On 4/27/05, Brian Schröder <ruby.brian@gmail.com> wrote:
> > On 27/04/05, Tilman Sauerbeck <tilman@code-monkey.de> wrote:
> > > Brian Schröder <ruby.brian@gmail.com> [2005-04-28 05:52]:
> > > > Thank you all for your answers. I can imagine that vim is not too bad,
> > > > after having tried it a bit. But until I find time to find out how to
> > > > do:
> > > > 1) Auto-Indent with Tab
> > >
> > > set sw=4 " no of spaces for indentation
> > > set ts=4 " show \t as 4 spaces resp treat 4 spaces as a tab when
> > > " deleting etc
> > > set sts=0 " forgot what this sucker did ;)
> > > set noexpandtab " don't expand tabs to spaces
> > >
> >
> > Thanks for the fast reply, but I meant pressing tab to indent a line
> > to the semantically correct level. Xemacs does a great job for ruby
> > code.
>
> Generally in vim, stuff just automatically indents itself correctly.
> If I type an "end", it'll put it in the correct place. No need to
> manually press tab or anything.
Another way to do it is to use visual mode to highlight what you want,
then press = (once or twice, my brain cant remember but my fingers
do :)
--
spooq