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

653 active golfers, 2894 entries

Leaderboard (lowest score wins):
26
#541 - rvnjsphdmn / @rvnjsphdmn

05/08/2019 at 02:04PM

26
#542 - André Reigoto / @AndreReigoto

08/10/2019 at 05:04AM

27
#543 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 11:20PM

27
#544 - Sören Schellhoff / @Jackokomm

11/18/2018 at 03:26PM

27
#545 - Bumazhka / @Bumazhka

02/09/2019 at 10:46AM

27
#546 - Ng Sek Long / @NgSekLong

02/14/2019 at 07:09AM

27
#547 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 06:17PM

27
#548 - Jone Marius Vignes / @inful

06/15/2019 at 09:37PM

28
#549 - Sam Kim / @samkimhis

10/11/2018 at 06:28AM

28
#550 - greengreen / @greengr09073862

11/15/2018 at 04:26AM

28
#551 - Jules / @namebrandloser

11/16/2018 at 08:40PM

28
#552 - xer0.5ive / @Bibekshah

01/23/2019 at 02:51PM

28
#553 - Jiho Noh / @JihoNoh

04/01/2019 at 11:08PM

28
#554 - Kirk Bater / @KirkBater

06/06/2019 at 05:16PM

28
#555 - Evan Nagle / @evannagle

06/11/2019 at 07:02AM

28
#556 - Mike Hourahine / @mhourahine

08/01/2019 at 01:47AM

28
#557 - Riftere / @riftere11

08/03/2019 at 10:24PM

28
#558 - José / @AngelGaldamez

08/26/2019 at 02:51AM

28
#559 - wsg / @wsg31986835

11/29/2019 at 11:31AM

28
#560 - manfred knapp / @fred_pooshka

12/21/2019 at 11:18PM

28
#561 - Soumadeep Saha / @SoumadeepSaha8

05/10/2020 at 02:15AM

28
#562 - jackmark / @jackmar14540583

07/10/2020 at 02:05PM

29
#563 - Dax / @daaawx

10/15/2018 at 06:35PM

29
#564 - Andre Cato / @DreBear800

10/30/2018 at 01:49AM

29
#565 - Alexander Popov / @Alexand01782341

03/10/2019 at 08:21PM

29
#566 - Jess / @Jess74311450

06/11/2019 at 03:31PM

29
#567 - Rohit Kumar Jena / @rohitrango

07/05/2019 at 06:22AM

29
#568 - Chris Shorrock / @EbinFlow

08/15/2019 at 02:51PM

29
#569 - dahara / @kuma_moooon

08/15/2019 at 03:11PM

29
#570 - GAUTAM V NAIK / @gautamnaik1994

08/26/2019 at 11:04AM