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

638 active golfers, 2174 entries

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

09/17/2016 at 03:59AM

16
#>204 - ✘A / @Lolicon_H

09/17/2016 at 03:57AM

17
#>253 - ✘A / @Lolicon_H

09/17/2016 at 03:55AM

18
#>289 - ✘A / @Lolicon_H

09/17/2016 at 03:52AM

19
#>337 - ✘A / @Lolicon_H

09/17/2016 at 03:51AM

19
#>337 - ✘A / @Lolicon_H

09/17/2016 at 03:52AM

20
#>378 - ✘A / @Lolicon_H

09/17/2016 at 03:51AM

21
#>420 - ✘A / @Lolicon_H

09/17/2016 at 03:50AM

24
#>503 - ✘A / @Lolicon_H

09/17/2016 at 03:44AM

26
#>545 - ✘A / @Lolicon_H

09/17/2016 at 03:41AM

30
#>601 - ✘A / @Lolicon_H

09/17/2016 at 03:41AM

33
#>610 - ✘A / @Lolicon_H

09/17/2016 at 03:40AM