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
#181 - Bran / @brandypix

07/22/2016 at 09:50PM

16
#182 - Jeremiah Goyette / @JeremiahGoyette

07/30/2016 at 05:20AM

16
#183 - Walker Boh / @walker_boh

08/09/2016 at 08:48AM

16
#184 - Paulo Dalla Santa / @pdallasanta

08/22/2016 at 02:48PM

16
#185 - citaret / @citaret

08/24/2016 at 12:11AM

16
#186 - Winfried Puchinger / @winpuc

08/29/2016 at 07:32AM

16
#187 - Alexey / @AlexeyKarpelev

09/02/2016 at 07:13AM

16
#188 - Rohan Orton / @rohan_orton

09/06/2016 at 09:53AM

16
#189 - Chris / @Gaunah_

09/07/2016 at 04:44PM

16
#190 - 박 재 성 / @javajigi

09/23/2016 at 03:21AM

16
#191 - Jeremiah Gibson / @jeremiah4691

09/29/2016 at 04:41PM

16
#192 - KangHun Seo / @shirano80

10/31/2016 at 02:47AM

16
#193 - Kracejic / @kracejic

10/31/2016 at 04:23PM

16
#194 - Craig Langford / @cllangfo

12/11/2016 at 11:07PM

16
#195 - Roey Berman / @ManBergundyPig

12/17/2016 at 10:46PM

16
#196 - Pierre Maoui / @poupougnac

12/19/2016 at 03:25PM

16
#197 - hen don / @hendon112

02/26/2017 at 12:15PM

16
#198 - Dimitar Ivanov / @dimisthoughts

03/12/2017 at 06:08AM

16
#199 - Andreas Anderbach / @anderbacha

03/20/2017 at 02:51PM

16
#200 - Solomon / @Trugbildjaeger

04/02/2017 at 09:28AM

16
#201 - Nicolás Alvarez / @nicoa_bb_ba_ar

04/25/2017 at 09:55PM

16
#202 - FC / @FC37138806

05/10/2017 at 11:23PM

16
#203 - Renee Zhu / @reneezhu1994

05/10/2017 at 11:27PM

16
#204 - thomas lo / @wagaiznogoud

05/11/2017 at 02:07PM

16
#205 - Anders Schramm / @AndersSchramm

05/24/2017 at 01:55PM

16
#206 - Ernesto Barros / @ernestobarros7

05/27/2017 at 10:26PM

16
#207 - John Smith / @johns32768

06/17/2017 at 11:08AM

16
#208 - Baine Wedlock / @BaineWedlock

08/11/2017 at 06:28AM

16
#209 - aselaIllayaparachchi / @asela38

08/25/2017 at 04:35AM

16
#210 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

10/05/2017 at 02:56PM