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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 556 remaining solutions by signing in and submitting your own entry
#557 Jinotega / @Jinotega3000 - Score: 89 - 12/29/16 @ 20:54
jjWwi<CR><BS><BS><BS><BS><BS>      jk<BS><BS><Esc>wwwwijk<BS><BS>hi<BS><BS><Esc>i<CR><BS><BS><BS><BS><BS><BS><CR><BS><BS><BS><BS><BS>      <Esc>wwwwwwwwwbbbhi<CR><BS><BS><BS><BS><BS>      <Esc>j:wq<CR>

0 comments


Created by: @Benoit_Tgt

557 active golfers, 1894 entries

Leaderboard (lowest score wins):
32
#541 - Brandon Harrison / @llAboutB

09/24/2019 at 08:51PM

33
#542 - 최종원 / @lastone9182

07/19/2018 at 10:53AM

34
#543 - prince ducaca / @prince_du_caca

09/27/2018 at 11:08PM

34
#544 - lucca augusto / @LuccaAugusto6

10/05/2019 at 06:01PM

35
#545 - Nicola Coretti / @NiCoRetti

05/29/2016 at 09:38AM

36
#546 - nieza / @lucaspta1

06/05/2016 at 03:21AM

36
#547 - Brandon Emery Craig / @iambcraig

08/03/2018 at 07:57PM

37
#548 - Ryan Coopersmith / @RyanCoopersmit1

06/04/2017 at 09:16PM

37
#549 - vimgolfacct / @vimgolfacct

07/08/2019 at 01:44AM

45
#550 - Luis Rodriguez / @luisthecoder

11/13/2018 at 03:44AM

48
#551 - tuyen / @tuyen66827418

11/28/2018 at 03:18PM

49
#552 - Vim Golfer / @VimGolfer6

08/10/2019 at 11:40AM

50
#553 - Jurica / @Jurica34581259

11/15/2018 at 01:29AM

70
#554 - Jakub Troszok / @zosoooo

06/20/2016 at 03:53PM

70
#555 - Samir Sadek / @netsamir

07/10/2016 at 06:16PM

80
#556 - Justin Sitarz / @justinsitarz

05/30/2019 at 02:43PM

89
#557 - Jinotega / @Jinotega3000

12/29/2016 at 08:54PM