From: Sascha Ebach Date: 2005-03-23T10:49:48+09:00 Subject: Re: Any guides for good coding in Ruby? [OT] tabs vs. spaces Nikolai Weibull wrote: > * Sascha Ebach (Mar 23, 2005 01:30): > >>Nice to have so many experts here :) I have actually been fighting >>around with this issue. I have found that using tabs always gives me >>headaches somewhere. For example when I paste code examples into emails. > > >>What do I have to set in vim if I always want two spaces (also when I >>press the tab key)? No exceptions. I essentially want this: >> >>class PageController >> def edit >> case @request.method >> when :get >> @page = Page.find(@params['id']) >> when :post >> ... >> end >>end > > > What? You want tab to equal two spaces, regardless of column? Then, > > :imap > > is what you want, but, again, are you sure that's what you want?, Yes, I think so. I cannot remember that I really need a tab in any programming language I have used. If I need a tab in my strings I can simply do a "\t". Do you know of any circumstance you actually _need_ a tab? Sascha