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 5ba020f91abf2d000951055c

Com(m)a Trouble

Someone was real stupid when placing his commas. Can you fix it?

Start file
,0,1,2,3,4,5,6,7,89
,1,2,3,4,5,6,7,8,90
,2,3,4,5,6,7,8,9,01
,3,4,5,6,7,8,9,0,12
,4,5,6,7,8,9,0,1,23
56,7,8,9,0,1,2,3,4,
67,8,9,0,1,2,3,4,5,
78,9,0,1,2,3,4,5,6,
89,0,1,2,3,4,5,6,7,
90,1,2,3,4,5,6,7,8,
End file
0,1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9,0
2,3,4,5,6,7,8,9,0,1
3,4,5,6,7,8,9,0,1,2
4,5,6,7,8,9,0,1,2,3
5,6,7,8,9,0,1,2,3,4
6,7,8,9,0,1,2,3,4,5
7,8,9,0,1,2,3,4,5,6
8,9,0,1,2,3,4,5,6,7
9,0,1,2,3,4,5,6,7,8

View Diff

1,10c1,10
< ,0,1,2,3,4,5,6,7,89
< ,1,2,3,4,5,6,7,8,90
< ,2,3,4,5,6,7,8,9,01
< ,3,4,5,6,7,8,9,0,12
< ,4,5,6,7,8,9,0,1,23
< 56,7,8,9,0,1,2,3,4,
< 67,8,9,0,1,2,3,4,5,
< 78,9,0,1,2,3,4,5,6,
< 89,0,1,2,3,4,5,6,7,
< 90,1,2,3,4,5,6,7,8,
---
> 0,1,2,3,4,5,6,7,8,9
> 1,2,3,4,5,6,7,8,9,0
> 2,3,4,5,6,7,8,9,0,1
> 3,4,5,6,7,8,9,0,1,2
> 4,5,6,7,8,9,0,1,2,3
> 5,6,7,8,9,0,1,2,3,4
> 6,7,8,9,0,1,2,3,4,5
> 7,8,9,0,1,2,3,4,5,6
> 8,9,0,1,2,3,4,5,6,7
> 9,0,1,2,3,4,5,6,7,8

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 574 remaining solutions by signing in and submitting your own entry
#575 梁(Liang リャン) / @starduliang - Score: 208 - 03/01/20 @ 11:16
jk<C-V>jjjjxlllllllllllllllll<C-V>jjjjp<Esc><Esc>uh<C-V>jjjjp<Esc>uu<C-V>jjjjxlllllllllllhhhhf9h<C-V>jjjjp<Esc>u<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>ul<C-V>jjjjI,<Esc><Esc><Esc>jjjjjl<C-V>jjjjx<Esc>bbbbbbbbbbbbbbbbl<C-V>jjjjI,<Esc>jjjjjj:w<CR>:wq<CR>

0 comments


Created by: @DustVoice

575 active golfers, 2530 entries

Leaderboard (lowest score wins):
13
#211 - TimMcGuire / @mcguire

02/18/2020 at 10:22AM

13
#212 - Chris League / @chrisleague

02/23/2020 at 08:20PM

13
#213 - vimgolfplayer92 / @vimgolfplayer92

02/29/2020 at 11:47AM

13
#214 - eshel / @EshelBM

02/29/2020 at 01:36PM

13
#215 - Mike Wortin / @MWortin

02/29/2020 at 06:15PM

13
#216 - Renns / @Renns95250521

03/06/2020 at 07:34PM

13
#217 - Paul Parker / @PaulDesmoParker

03/12/2020 at 04:21AM

13
#218 - BnnGolfer / @BnnGolfer

03/21/2020 at 07:47PM

13
#219 - vvaannaa3 / @vvaannaa3

03/23/2020 at 12:38PM

14
#220 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#221 - Steve Bitner / @fourbitbots

09/19/2018 at 01:54AM

14
#222 - Anoop Kumar / @anooplive

09/19/2018 at 09:30PM

14
#223 - David Gustavsson / @mrGustaphe

09/20/2018 at 11:38AM

14
#224 - Arijus / @argshook

09/21/2018 at 06:45AM

14
#225 - jairoandre / @jairoandre

09/26/2018 at 01:06PM

14
#226 - golgi / @gloggyapparatus

10/01/2018 at 11:12PM

14
#227 - Roger Bongers / @RogerBongers

10/02/2018 at 02:22AM

14
#228 - Zutatensuppe / @Zutatensuppe

10/11/2018 at 01:11PM

14
#229 - Reuben Narkwo / @reubwo

10/16/2018 at 10:36PM

14
#230 - Anonymos / @cyou_teyi

10/25/2018 at 09:42AM

14
#231 - Finn Francis / @FinnFrancis

10/26/2018 at 08:10PM

14
#232 - matthew brett / @matthewbrett

10/28/2018 at 08:47AM

14
#233 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 04:45PM

14
#234 - zaperrer / @zaperrer

11/07/2018 at 07:53PM

14
#235 - Nir Givon / @nir_givon

11/08/2018 at 12:31PM

14
#236 - Wouter Horlings / @Achilleshiel

11/08/2018 at 02:24PM

14
#237 - slithy2000 / @slithy2000

11/12/2018 at 09:37AM

14
#238 - Michael Rose / @mdroseDev

11/23/2018 at 12:44AM

14
#239 - Joeoe / @joeoe_

11/24/2018 at 03:05PM

14
#240 - samsuma000 / @samsuma000

11/27/2018 at 10:20PM