ecomba / vim-ruby-refactoring

Refactoring tool for Ruby in vim!
520 stars 52 forks source link

Tab and indentation differences cause spacing issues #30

Open rossbeehler opened 13 years ago

rossbeehler commented 13 years ago

Here's the tab/indentation/spacing section of my .vimrc:

se smartindent se sw=2 se ts=2 se expandtab

With those settings, many cucumber scenarios fail. I've played around with no/other settings and can't get them to all pass, so we need either the recommended settings and/or enhancements to support a wider range of settings.

rossbeehler commented 13 years ago

After some more playing, here's the .vimrc settings that got all the scenarios to pass:

set sw=2 set ts=2 set expandtab set nocompatible " We're running Vim, not Vi! syntax on " Enable syntax highlighting filetype on " Enable filetype detection filetype indent on " Enable filetype-specific indenting filetype plugin on " Enable filetype-specific plugins