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

872 active golfers, 3863 entries

Leaderboard (lowest score wins):
12
#181 - Alexander Cai / @adzcai

02/01/2025 at 02:07AM

12
#182 - RGSATG / @RGSATG

03/16/2025 at 09:58PM

13
#183 - "Smylers" / @Smylers2

09/18/2018 at 08:48AM

13
#184 - zmf_tim / @zmf_tim

09/18/2018 at 08:00PM

13
#185 - Epecb / @BceEpecb

09/19/2018 at 05:21PM

13
#186 - yudera / @yudemente

09/19/2018 at 11:37PM

13
#187 - Harm te Hennepe / @HrmtH

09/20/2018 at 11:29AM

13
#188 - Saki Gw / @Sakigw

09/20/2018 at 01:28PM

13
#189 - Gayan Munasinghe / @gayanm

09/21/2018 at 11:40PM

13
#190 - Koo Zhengqun / @zhengqunkoo

09/24/2018 at 04:26AM

13
#191 - bignos / @bignos2

09/24/2018 at 10:02AM

13
#192 - konankun / @__konankun

09/25/2018 at 09:53AM

13
#193 - Pico / @Elarique_Swift

09/29/2018 at 08:33PM

13
#194 - DoubleIA / @IaDouble

09/30/2018 at 09:15AM

13
#195 - Will / @VVi11_I_AM

09/30/2018 at 07:57PM

13
#196 - Keldwik Chaldain / @Suskeyhose

10/03/2018 at 02:00AM

13
#197 - John Oleksowicz / @JohnOlek

10/05/2018 at 02:50PM

13
#198 - nobody that important / @nobodythatimpo2

10/07/2018 at 11:15PM

13
#199 - Taylor Shane Hawkins / @underempire

10/08/2018 at 03:03PM

13
#200 - A / @777Android777

10/08/2018 at 06:46PM

13
#201 - towc / @MateiCopot

10/09/2018 at 09:45AM

13
#202 - Brendan Maginnis / @BrendanMaginni1

10/09/2018 at 10:12PM

13
#203 - Benjamin Kiesl / @BenjaminKiesl

10/10/2018 at 09:44AM

13
#204 - Sebastian Korten / @FlashKorten

10/12/2018 at 05:04PM

13
#205 - goldenlimpay / @goldenlimpay

10/13/2018 at 05:04AM

13
#206 - Chris Budetti / @ChrisBudetti

10/14/2018 at 12:01PM

13
#207 - Alejandro Santander / @_ajsantander

10/17/2018 at 01:50AM

13
#208 - Ole Mussmann / @isbjornlabs

10/27/2018 at 11:45PM

13
#209 - Bashar Jaan Khan / @basharjaankhan

10/28/2018 at 09:32AM

13
#210 - jyloup / @jyloup

10/30/2018 at 05:59PM