From: Daniel Bretoi Date: 2002-08-04T12:29:08+09:00 Subject: Re: vim indenteation for ruby I don't mind tab being represented by two spaces, I prefer 3, but sw actually MAKES an indentation of 2 spaces vs a real tab. That, I do NOT like. I think keeping tabs instead of spaces allows anyone to set their tab/space preference. Spaces are much more imposing. db On Sat, Aug 03, 2002 at 12:10:50AM +0900, Thomas Hurst wrote: > * Evan Martin (martine@cs.washington.edu) wrote: > > > Daniel Bretoi wrote: > > > I'm not sure anyone else has noticed this, but the vim > > > indentation for ruby is frustrating. It keeps indenting two > > > spaces instead of tab. Has anyone else experienced this? > > > > :set ts=2 > > Note the automatic indenting is set by shiftwidth, which is set to 2 in > the filetype plugin, so if you don't like the ts of 2, you'll need to > override it there, either by editing ftplugin/ruby.vim, or creating > ~/.vim/ftplugin/ruby.vim yourself. > > :help ftplugin > > -- > Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ > - > He was the sort of person whose personality > would be greatly improved by a terminal illness. -- "Then we typed the G, and the system crashed"...