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

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

623 active golfers, 2103 entries

Solutions by @DHM29978992:
15
#134 - DHM / @DHM29978992

04/12/2018 at 03:34AM

15
#>134 - DHM / @DHM29978992

04/12/2018 at 03:37AM

16
#>223 - DHM / @DHM29978992

04/12/2018 at 03:32AM

18
#>299 - DHM / @DHM29978992

04/12/2018 at 03:30AM

19
#>344 - DHM / @DHM29978992

04/12/2018 at 03:28AM

20
#>379 - DHM / @DHM29978992

04/12/2018 at 03:22AM

21
#>430 - DHM / @DHM29978992

04/12/2018 at 03:21AM

23
#>484 - DHM / @DHM29978992

04/12/2018 at 03:18AM