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 534 remaining solutions by signing in and submitting your own entry
#535 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

535 active golfers, 1826 entries

Leaderboard (lowest score wins):
16
#151 - some call me mattp / @mattpep

05/12/2016 at 03:43PM

16
#152 - damon kelley / @damonkelley

05/12/2016 at 04:02PM

16
#153 - Nick / @Nickwilmes

05/13/2016 at 10:14PM

16
#154 - Ricardo Santos / @TWidXugA

05/14/2016 at 02:15PM

16
#155 - Tom / @CronutFacts

05/15/2016 at 07:55PM

16
#156 - 朱国栋 / @GuodongZhu

05/16/2016 at 09:51PM

16
#157 - Bob Boberson / @BobersonBob7

05/16/2016 at 09:59PM

16
#158 - vic © / @2r2w

05/19/2016 at 04:37PM

16
#159 - Ben Doherty / @bjdgames

05/20/2016 at 05:46AM

16
#160 - Petr Blaho / @petrblaho

05/20/2016 at 11:28AM

16
#161 - Rasmus P / @rasmup

05/21/2016 at 09:41AM

16
#162 - f00b8tr / @f00b8tr5

05/23/2016 at 03:49AM

16
#163 - Victorien Lorcy / @LorcyVictorien

05/28/2016 at 09:49AM

16
#164 - niels aamloos / @AamloosNiels

05/28/2016 at 12:26PM

16
#165 - Fnord Everywhere / @FnordE

06/01/2016 at 02:23PM

16
#166 - Elliott Beach / @718282Beach

06/04/2016 at 11:25PM

16
#167 - Ganesh Datta / @gsdatta

06/05/2016 at 06:58AM

16
#168 - David Cao / @pciex3

06/06/2016 at 06:13AM

16
#169 - Pablo R. Dinella / @pablordinella

06/10/2016 at 03:53AM

16
#170 - Ivo Burkatzki / @ibukat

06/11/2016 at 12:10PM

16
#171 - Ali Al Amine / @alialamine95

06/12/2016 at 12:36PM

16
#172 - EVGENIY SEMENOV / @r0cketboy

06/16/2016 at 01:03PM

16
#173 - Павел Игоревич / @VizierST

06/21/2016 at 10:55PM

16
#174 - Kerson Hsiao / @KersonHsiao

06/28/2016 at 08:32AM

16
#175 - Reuben Huxley / @missiontocode

06/29/2016 at 05:50AM

16
#176 - Alex Rod. / @thealex23ro

06/30/2016 at 12:30AM

16
#177 - Vaisian / @Vaisian

07/03/2016 at 06:21PM

16
#178 - Ealhad / @Ealhad

07/13/2016 at 10:46PM

16
#179 - Nat / @ntzm_

07/15/2016 at 11:18AM

16
#180 - kwa / @kwa129

07/20/2016 at 01:34AM