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):
15
#61 - herbage / @herbage2

07/15/2016 at 10:35PM

15
#62 - LordFoom / @LordFoom

07/21/2016 at 12:19PM

15
#63 - Boubou / @brahimalekhine

07/24/2016 at 03:08PM

15
#64 - iershov / @thorny_hamster

07/24/2016 at 03:47PM

15
#65 - Benedikt Breinbauer / @benebun

07/24/2016 at 04:05PM

15
#66 - Edgar Hipp / @EdgarHipp

07/28/2016 at 09:43AM

15
#67 - hyhit / @hyhit2

08/01/2016 at 02:07AM

15
#68 - Vaughn Cato / @vaughncato

08/07/2016 at 05:22PM

15
#69 - Daniel Flanagan / @lytedev

08/09/2016 at 08:57AM

15
#70 - Byron Ellacott / @codebje

08/10/2016 at 02:40AM

15
#71 - 7r6a2l / @7r6a2l

08/10/2016 at 03:28AM

15
#72 - jaresty / @jaresty

08/16/2016 at 03:12PM

15
#73 - Martin Bielik / @MrMadox2

08/17/2016 at 08:49PM

15
#74 - u03c6 / @u03c6

08/18/2016 at 01:57AM

15
#75 - Richard O'Brien / @richard0b

08/18/2016 at 05:07AM

15
#76 - Maxim Pertsov / @maxim_pertsov

08/21/2016 at 07:23AM

15
#77 - Stanislav / @prstad

08/22/2016 at 09:40AM

15
#78 - Guillem Blanco / @BlancoGuillem

08/24/2016 at 12:07PM

15
#79 - Andrew / @PickledCupcakes

08/30/2016 at 06:14AM

15
#80 - Stephen Aument / @saument

08/30/2016 at 07:46PM

15
#81 - jdupont655 / @jdupont655

09/01/2016 at 10:30PM

15
#82 - Krzysztof Borkowski / @smiechowy

09/03/2016 at 12:01PM

15
#83 - ymmtmdk / @ymmtmdk

09/04/2016 at 08:10AM

15
#84 - loki2441 / @loki2441

09/05/2016 at 10:12AM

15
#85 - hor1ace / @hor3ace

09/07/2016 at 02:58PM

15
#86 - ✘A / @Lolicon_H

09/17/2016 at 03:59AM

15
#87 - Sahar Rachamim / @SRachamim

09/21/2016 at 02:51PM

15
#88 - Nikos Kwlos / @Kwlos_Calling

10/02/2016 at 05:37PM

15
#89 - poke / @useraaaaaaaaaaf

10/04/2016 at 01:54PM

15
#90 - trx / @trxdbg

10/10/2016 at 12:40AM