Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d28637c4bcd032f1c00003d

Reformat long lines

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

Start file
def default_i18n_subject
  mailer_scope = self.class.mailer_name.gsub('/', '.')
  I18n.t(:subject, :scope => [mailer_scope, action_name], :default => action_name.humanize)
end
End file
def default_i18n_subject
  mailer_scope = self.class.mailer_name.gsub('/', '.')
  I18n.t(:subject,
         :scope => [mailer_scope, action_name],
         :default => action_name.humanize)
end

View Diff

3c3,5
<   I18n.t(:subject, :scope => [mailer_scope, action_name], :default => action_name.humanize)
---
>   I18n.t(:subject,
>          :scope => [mailer_scope, action_name],
>          :default => action_name.humanize)

Solutions by @DoubleFelix_:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @sermoa

134 active golfers, 358 entries

Solutions by @DoubleFelix_:
15
#23 - Felix / @DoubleFelix_

02/24/2015 at 09:50AM

15
#>23 - Felix / @DoubleFelix_

02/24/2015 at 09:51AM

17
#>66 - Felix / @DoubleFelix_

02/24/2015 at 09:47AM

18
#>76 - Felix / @DoubleFelix_

02/24/2015 at 09:46AM

19
#>81 - Felix / @DoubleFelix_

02/24/2015 at 09:45AM

21
#>106 - Felix / @DoubleFelix_

02/24/2015 at 09:30AM

21
#>106 - Felix / @DoubleFelix_

02/24/2015 at 09:40AM