From: Sam Roberts Date: 2005-03-23T11:54:31+09:00 Subject: Re: Any guides for good coding in Ruby? [OT] tabs vs. spaces Quoting mailing-lists.ruby-talk@rawuncut.elitemail.org, on Wed, Mar 23, 2005 at 09:02:39AM +0900: > * Sam Roberts (Mar 23, 2005 00:50): > It's very easy to do with vim. Simply leave your 'ts' alone, set 'sw' to > 8, don't set 'sts' and don't set 'et'. Those are all default settings > by the way. > > GNU indent can be set to use any of a variety of indentation > "standards". It can also be configured to your hearts delight. Yeah, but it conveniently default to GNUs. > well, I could have spelled them out, but that wouldn't have changed > much ;-). (The full command is > :set tabstop& shiftwidth& softtabstop& expandtab& > > Hm, well, true, leave smarttab at its default setting (of off) as well, > nikolai (the ???who the hell messes with the smarttab > setting????-kinda guy) I longer have the need to use this style and am quite happy with my settings, but none of the approaches above gave me any indentation at all, sorry. Or was I supposed to manually press TAB every time I wanted an indent? When I selected and did =, it indented like: void foo(void) { int i; if(1) { } ^^^^^^^^ this is a TAB. I use vim 6.3, and ran with vim -u /dev/null to take my settings out of it. Cheers, Sam