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

394 active golfers, 1698 entries

Leaderboard (lowest score wins):
13
#61 - Koo Zhengqun / @zhengqunkoo

09/24/2018 at 04:26AM

13
#62 - bignos / @bignos2

09/24/2018 at 10:02AM

13
#63 - konankun / @__konankun

09/25/2018 at 09:53AM

13
#64 - Pico / @Elarique_Swift

09/29/2018 at 08:33PM

13
#65 - DoubleIA / @IaDouble

09/30/2018 at 09:15AM

13
#66 - Will / @VVi11_I_AM

09/30/2018 at 07:57PM

13
#67 - Keldwik Chaldain / @Suskeyhose

10/03/2018 at 02:00AM

13
#68 - John Oleksowicz / @JohnOlek

10/05/2018 at 02:50PM

13
#69 - nobody that important / @nobodythatimpo2

10/07/2018 at 11:15PM

13
#70 - Taylor Shane Hawkins / @underempire

10/08/2018 at 03:03PM

13
#71 - A / @777Android777

10/08/2018 at 06:46PM

13
#72 - towc / @MateiCopot

10/09/2018 at 09:45AM

13
#73 - Brendan Maginnis / @BrendanMaginni1

10/09/2018 at 10:12PM

13
#74 - Benjamin Kiesl / @BenjaminKiesl

10/10/2018 at 09:44AM

13
#75 - Sebastian Korten / @FlashKorten

10/12/2018 at 05:04PM

13
#76 - goldenlimpay / @goldenlimpay

10/13/2018 at 05:04AM

13
#77 - Chris Budetti / @ChrisBudetti

10/14/2018 at 12:01PM

13
#78 - ajs / @_ajsantander

10/17/2018 at 01:50AM

13
#79 - Ole Mussmann / @isbjornlabs

10/27/2018 at 11:45PM

13
#80 - Bashar Jaan Khan / @basharjaankhan

10/28/2018 at 09:32AM

13
#81 - jyloup / @jyloup

10/30/2018 at 05:59PM

13
#82 - JulianW / @JulianWgs

11/01/2018 at 11:07PM

13
#83 - Mike Adams / @davis_cromwell

11/02/2018 at 03:15AM

13
#84 - ForVimGolfReally / @VimFor

11/08/2018 at 11:37PM

13
#85 - 唐偉 / @tangw

11/11/2018 at 08:10PM

13
#86 - justed / @justevild

11/12/2018 at 09:29PM

13
#87 - name / @name65894813

11/14/2018 at 04:10PM

13
#88 - Levi Self / @LeviRSelf

11/18/2018 at 04:43AM

13
#89 - Mihai / @mihaicristiant

11/26/2018 at 01:03PM

13
#90 - Cabal51 / @Cabal51

12/06/2018 at 12:12AM