From: Nikolai Weibull Date: 2005-03-23T09:39:00+09:00 Subject: Re: Any guides for good coding in Ruby? [OT] tabs vs. spaces * 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?, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}