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 57343555fd77ad227900df4a

Split line with dots

This line is too long, split it.

Start file
class VimGolf
  def split_me
    MyModel.first_method.second_method(arg).third_method(arg.method_one.method_two)
  end
end
End file
class VimGolf
  def split_me
    MyModel
      .first_method
      .second_method(arg)
      .third_method(arg.method_one.method_two)
  end
end

View Diff

3c3,6
<     MyModel.first_method.second_method(arg).third_method(arg.method_one.method_two)
---
>     MyModel
>       .first_method
>       .second_method(arg)
>       .third_method(arg.method_one.method_two)

Solutions by @Lolicon_H:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @Benoit_Tgt

636 active golfers, 2156 entries

Solutions by @Lolicon_H:
15
#86 - ✘A / @Lolicon_H

09/17/2016 at 03:59AM

16
#>203 - ✘A / @Lolicon_H

09/17/2016 at 03:57AM

17
#>252 - ✘A / @Lolicon_H

09/17/2016 at 03:55AM

18
#>288 - ✘A / @Lolicon_H

09/17/2016 at 03:52AM

19
#>336 - ✘A / @Lolicon_H

09/17/2016 at 03:51AM

19
#>336 - ✘A / @Lolicon_H

09/17/2016 at 03:52AM

20
#>377 - ✘A / @Lolicon_H

09/17/2016 at 03:51AM

21
#>419 - ✘A / @Lolicon_H

09/17/2016 at 03:50AM

24
#>501 - ✘A / @Lolicon_H

09/17/2016 at 03:44AM

26
#>543 - ✘A / @Lolicon_H

09/17/2016 at 03:41AM

30
#>599 - ✘A / @Lolicon_H

09/17/2016 at 03:41AM

33
#>608 - ✘A / @Lolicon_H

09/17/2016 at 03:40AM