Tuesday, April 17, 2012

Re: indenting ruby code

On Monday, April 16, 2012 10:48:03 PM UTC-7, a_olme wrote:
> > > > describe "some behavior" do
> > > > __it "should work do
> > > > __#...
> > > > __end
> > > > end
> > > >
> > > > is what "I" like to have
> > It is from netbeans 7.0 auto formatting

This still sounds odd to me. Ruby formatting indents the contents of blocks, so the #... line really should be indented, at least according to the usual style. I don't see how Netbeans could format RSpec code differently.

> but I dont know if some one fiddle with it to get it like that but now it is > the default so I have to adapt vim or emacs to do the same or i would be
> fledged by the rest of the team if I accidentally reformatted the code :).

But this part I understand.

> Hm %s/fledged/hanged/g ;)

No, I think you clearly meant 'flogged'.

///ark

Mark Wilden
Web Applications Developer
California Academy of Sciences

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: