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 870 remaining solutions by signing in and submitting your own entry
#871 梁(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

871 active golfers, 3853 entries

Leaderboard (lowest score wins):
14
#391 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:54AM

14
#392 - Jonathan Browning / @yungjig90

08/02/2019 at 05:34PM

14
#393 - Andac Safa / @SanDForcE94

09/12/2019 at 09:32AM

14
#394 - Alexander L. / @Lexol4s

10/01/2019 at 07:53PM

14
#395 - Alex Emelianov / @AlexEmelianov3

10/26/2019 at 05:19AM

14
#396 - Lion de Bell / @CLGBamboo

11/30/2019 at 11:29PM

14
#397 - Marten Ringwelski / @Marteon27

12/07/2019 at 06:47PM

14
#398 - John Otters / @OttersJohn

12/17/2019 at 01:14AM

14
#399 - Lars Haalck / @larshulk

01/09/2020 at 03:14PM

14
#400 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 10:50PM

14
#401 - nico S / @der_nico_93

01/30/2020 at 01:40PM

14
#402 - floyd / @floyd10086

03/04/2020 at 09:49AM

14
#403 - artcha / @artushkevichs

07/08/2020 at 08:07AM

14
#404 - Jason / @jason_eveleth

08/03/2020 at 11:28PM

14
#405 - GenericHardwareGamer / @GnrikHrdwrGamer

08/06/2020 at 10:50PM

14
#406 - Deepak Mittal / @dpacmittal

09/25/2020 at 05:21PM

14
#407 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 02:19PM

14
#408 - Björn Struckmeier / @BjrnStruckmeie1

01/04/2021 at 03:25PM

14
#409 - 7733865@qq.com / @tjxwg

06/12/2023 at 02:40AM

14
#410 - yrhaid / @yrhaid

05/17/2024 at 04:28PM

14
#411 - Maximilian Ballard / @ediw8311xht

08/17/2024 at 01:04AM

15
#412 - tPenguinLTG / @tpenguinltg

09/18/2018 at 12:17AM

15
#413 - Jan Bundesmann / @janbundesmann

09/18/2018 at 02:16AM

15
#414 - Sean / @SeanZhou1023

09/30/2018 at 02:37AM

15
#415 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 01:52AM

15
#416 - Andy Tockman / @atckmn

10/06/2018 at 08:12PM

15
#417 - 王有铭 / @wangyouming1209

10/21/2018 at 06:13AM

15
#418 - Adam / @askoufish

10/23/2018 at 05:12AM

15
#419 - Nikos Filippakis / @nikos_filip

11/12/2018 at 09:14AM

15
#420 - succcubbus / @succcubbus

11/20/2018 at 10:19PM