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 @LucasNussbaum:

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

622 active golfers, 2098 entries

Solutions by @LucasNussbaum:
15
#144 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:30PM

18
#>301 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:28PM

19
#>344 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:27PM

20
#>381 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:25PM

21
#>431 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:19PM

22
#>454 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:06PM

24
#>499 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:04PM

25
#>521 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:03PM

26
#>543 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:01PM

27
#>567 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 08:00PM

28
#>574 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 07:59PM

30
#>590 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 07:57PM

32
#>596 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 07:55PM

37
#>607 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 07:52PM

39
#>608 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 06:56PM

43
#>609 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 06:56PM

71
#>619 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 06:55PM

149
#>622 - Lucas Nussbaum / @LucasNussbaum

11/28/2018 at 06:54PM