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

892 active golfers, 3941 entries

Leaderboard (lowest score wins):
12
#151 - russellzhaomao / @russellzhaomao

05/28/2022 at 09:47AM

12
#152 - Mario / @MarioWolfe

06/19/2022 at 04:18AM

12
#153 - Oli / @o_lalonde

07/10/2022 at 09:24PM

12
#154 - Ariel Frischer / @ArielFrischer

07/17/2022 at 08:11PM

12
#155 - Zain.Edogawa / @EdogawaZain

07/31/2022 at 04:29PM

12
#156 - kunal vora / @Kunal_vora9

09/25/2022 at 11:25PM

12
#157 - Janzen / @__Coos

10/03/2022 at 12:39PM

12
#158 - Eric Bonet / @ericcbonet

11/01/2022 at 07:52AM

12
#159 - ky05uk3 / @kyo89347563

12/14/2022 at 05:24AM

12
#160 - Mrmclarrinson / @mrmclarrinson

12/14/2022 at 08:15AM

12
#161 - jay / @jayyylma0

01/20/2023 at 02:30AM

12
#162 - David Johnston / @nuts4nuts4nuts

03/23/2023 at 03:43AM

12
#163 - Glorbo / @GlorbyGlorbo

03/31/2023 at 04:50AM

12
#164 - indebutecs / @indebutecs

07/17/2023 at 04:46PM

12
#165 - moh ayaya / @AyayaMoh

09/17/2023 at 05:11PM

12
#166 - Hans Wurscht / @HansW313

09/25/2023 at 01:40PM

12
#167 - scpchicken / @scpchick

10/19/2023 at 07:16PM

12
#168 - asirago / @asiragoo

12/12/2023 at 08:09AM

12
#169 - sosa-daniel / @sosa-daniel

12/30/2023 at 07:33AM

12
#170 - ndaval / @ndaval

01/13/2024 at 10:34AM

12
#171 - Kory Newton / @korynewton

02/03/2024 at 07:27PM

12
#172 - Jinli Xiao / @jinlixiao

03/10/2024 at 06:57PM

12
#173 - weiss-i-net / @weiss-i-net

05/26/2024 at 07:15AM

12
#174 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 06:28PM

12
#175 - Peppa Pig / @PeppaPigSg

07/01/2024 at 02:28AM

12
#176 - Josh Pius / @josh-pius

08/23/2024 at 07:03PM

12
#177 - Rehpotsirhc / @Rehpotsirhc-z

08/26/2024 at 02:17AM

12
#178 - 765859220 / @765859220

08/27/2024 at 08:58AM

12
#179 - Evan McGorty / @EvanMcGorty

08/28/2024 at 06:58PM

12
#180 - Joad Nacer / @joadnacer

12/06/2024 at 10:50PM