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

657 active golfers, 2914 entries

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

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

12
#70 - Jeremy Soller / @jeremy_soller

10/25/2019 at 01:39AM

12
#71 - Gregory Furter / @gfurter

10/27/2019 at 09:26PM

12
#72 - vicver09 / @vicver091

10/28/2019 at 02:41AM

12
#73 - harmony_krieg / @harmony_krieg

11/02/2019 at 11:53PM

12
#74 - shoji541 / @shoji541

11/09/2019 at 11:56AM

12
#75 - Emil Braserud / @Erdustiggen

11/10/2019 at 04:20PM

12
#76 - Daniel Klepacki / @daniel_klepacki

11/13/2019 at 07:27PM

12
#77 - Erik Engstrom / @eengstrom

11/14/2019 at 10:51PM

12
#78 - Matt Aschmann / @ma7hatter

11/19/2019 at 05:56PM

12
#79 - 李嘉浩 / @isundaylee

11/23/2019 at 02:50AM

12
#80 - Magnus Bjuvensjö / @mbjuvensjo

11/24/2019 at 10:40PM

12
#81 - Hector Ricardo / @Hector_Ricardo3

11/30/2019 at 07:13PM

12
#82 - Jonathan Jeffrey / @projjects

12/05/2019 at 04:54AM

12
#83 - Eviber / @youvaaaaa

12/16/2019 at 03:16PM

12
#84 - Delon / @delonleonard

12/22/2019 at 12:21PM

12
#85 - 임덕윤 / @SnLHUF5ZYJXqI1m

12/25/2019 at 05:28PM

12
#86 - JimmyGymglish / @JGymglish

01/02/2020 at 11:49AM

12
#87 - caffeineism / @caffeineism

01/07/2020 at 01:57AM

12
#88 - mowglian / @mowglian

01/11/2020 at 10:40PM

12
#89 - Tefe / @tefetic

01/24/2020 at 10:16PM

12
#90 - Karnival K / @K4rnival

01/25/2020 at 08:20AM