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 463 remaining solutions by signing in and submitting your own entry
#464 Matej Stuchlik / @mstuchli - Score: 159 - 06/06/19 @ 16:21
<C-V>jjjjxpl.u.uuu<C-V>jjjj<Esc><Esc>kkkkqq<C-V>jjjjxpql@ql@@l@@l@@l@@l@@l@@l@@jjjjjhhhhhhhhhhhhhhhhhhhhllqq<C-V>jjjjxhhpqlll@qlll@@lll@@lll@@lll@@lll@@lll@@lll@@u@@u<C-V>jjjjxhp<Esc>:w<CR>:wqa<CR>

0 comments


Created by: @DustVoice

464 active golfers, 1984 entries

Leaderboard (lowest score wins):
12
#61 - Viktor Styrud / @Visklol

09/25/2019 at 12:11PM

12
#62 - vimgolfer / @vimgolfer7

09/28/2019 at 03:01PM

12
#63 - Adrian Craciun / @adi_craciun

10/03/2019 at 04:55PM

12
#64 - Sam O'Malley / @Samuel_OMalley

10/12/2019 at 04:03AM

12
#65 - KlondikeBaer / @BaerKlondike

10/14/2019 at 08:45PM

12
#66 - leo / @leo28356948

10/17/2019 at 12:38PM

12
#67 - Tamás Kárándi / @tkarandi

10/19/2019 at 07:50PM

12
#68 - Quentin Fox / @quentinbfox_

10/21/2019 at 02:07AM

12
#69 - Ivan Volosyuk / @IvanVolosyuk

10/21/2019 at 09:43AM

13
#70 - Jon Krause / @jkrause314

09/18/2018 at 05:39AM

13
#71 - Smylers / @Smylers2

09/18/2018 at 08:48AM

13
#72 - Timothée Gauthier / @zmf_tim

09/18/2018 at 08:00PM

13
#73 - Epecb / @BceEpecb

09/19/2018 at 05:21PM

13
#74 - Yudi Matsuzake / @yudimatsuzake

09/19/2018 at 11:37PM

13
#75 - Harm te Hennepe / @HrmtH

09/20/2018 at 11:29AM

13
#76 - Saki Gw / @Sakigw

09/20/2018 at 01:28PM

13
#77 - Gayan Munasinghe / @gayanm

09/21/2018 at 11:40PM

13
#78 - Koo Zhengqun / @zhengqunkoo

09/24/2018 at 04:26AM

13
#79 - bignos / @bignos2

09/24/2018 at 10:02AM

13
#80 - konankun / @__konankun

09/25/2018 at 09:53AM

13
#81 - Pico / @Elarique_Swift

09/29/2018 at 08:33PM

13
#82 - DoubleIA / @IaDouble

09/30/2018 at 09:15AM

13
#83 - Will / @VVi11_I_AM

09/30/2018 at 07:57PM

13
#84 - Keldwik Chaldain / @Suskeyhose

10/03/2018 at 02:00AM

13
#85 - John Oleksowicz / @JohnOlek

10/05/2018 at 02:50PM

13
#86 - nobody that important / @nobodythatimpo2

10/07/2018 at 11:15PM

13
#87 - Taylor Shane Hawkins / @underempire

10/08/2018 at 03:03PM

13
#88 - A / @777Android777

10/08/2018 at 06:46PM

13
#89 - towc / @MateiCopot

10/09/2018 at 09:45AM

13
#90 - Brendan Maginnis / @BrendanMaginni1

10/09/2018 at 10:12PM