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 9v0067401f2500000000061b

Change to ascending order

Change each line of numbers consistently from descending to ascending order.

Start file
10,9,8,7,6,5,4,3,2,1
Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two,One
Tenth,Ninth,Eighth,Seventh,Sixth,Fifth,Fourth,Third,Second,First
X,IX,VIII,VII,VI,V,IV,III,II,I
End file
1,2,3,4,5,6,7,8,9,10
One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten
First,Second,Third,Fourth,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth
I,II,III,IV,V,VI,VII,VIII,IX,X

View Diff

1,4c1,4
< 10,9,8,7,6,5,4,3,2,1
< Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two,One
< Tenth,Ninth,Eighth,Seventh,Sixth,Fifth,Fourth,Third,Second,First
< X,IX,VIII,VII,VI,V,IV,III,II,I
---
> 1,2,3,4,5,6,7,8,9,10
> One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten
> First,Second,Third,Fourth,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth
> I,II,III,IV,V,VI,VII,VIII,IX,X

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 116 remaining solutions by signing in and submitting your own entry
#117 SaneryiMatt / @SaneryiMatt - Score: 649 - 03/31/25 @ 11:41
<Right><Left><50-53>:%s/\(10,9,8,7,6,5,4,3,2,1\)/1,2,3,4,5,6,7,8,9,10/<Esc>[201~<CR>u:<50-53>:%s/\(10,9,8,7,6,5,4,3,2,1\)/1,2,3,4,5,6,7,8,9,10/<Esc>[201~<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><CR><Down>:<50-53>%s/Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two,One/One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten/<Esc>[201~<CR><Down><0xef><0xbc><0x9a><0xef><0xbc><0x9a><Down><Up><0xef><0xbc><0x9a><Right><Left>l<Esc><Esc><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Down><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>:<50-53>%s/Tenth,Ninth,Eighth,Seventh,Sixth,Fifth,Fourth,Third,Second,First/First,Second,Third,Fourth,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth/<Esc>[201~<CR><Down><0xef><0xbc><0x9a><0xef><0xbc><0x9a><Esc><0xef><0xbc><0x9a><Esc><Esc><Esc><Esc><Esc><CR><0xef><0xbc><0x9a>i<Esc><Esc>:<50-53>%s/X,IX,VIII,VII,VI,V,IV,III,II,I/I,II,III,IV,V,VI,VII,VIII,IX,X/<Esc>[201~<CR><0xef><0xbc><0x9a><Esc><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><0xef><0xbc><0x9a><CR><CR><0xef><0xbc><0x9a>lkjhlkjj<Esc>:wq<CR>

0 comments


Created by: @maharba6

117 active golfers, 483 entries

Leaderboard (lowest score wins):
99
#91 - SRINIVASU SALADI / @SRINIVASUS22587

03/11/2025 at 05:14AM

106
#92 - Ryo3110 / @r-3110

03/05/2025 at 12:13AM

107
#93 - Matthew Cooper / @mkcmkc

06/21/2025 at 09:20AM

109
#94 - Andrey Rakhubovsky / @omnster

05/18/2025 at 07:54PM

114
#95 - e.cousinet / @ecousinet

02/16/2025 at 09:28AM

116
#96 - Brad Parks / @bradparks

02/13/2025 at 08:00PM

130
#97 - Harrison Zhu / @harrison-zhu_data

12/19/2024 at 08:21PM

133
#98 - Gedoy / @Gedoy9793

11/26/2024 at 11:34AM

139
#99 - Dan Valníček / @DanValnicek

12/20/2024 at 01:40PM

141
#100 - Karthik / @karthikbhata

03/13/2025 at 05:29PM

153
#101 - lovebigwei / @lovebigwei

12/19/2024 at 03:07AM

179
#102 - AJ / @ajw109

04/09/2025 at 08:22PM

180
#103 - Maximiliano Aguirre / @MaximilianoAguirre

01/04/2025 at 01:36AM

182
#104 - LEE GI CHEOL / @LeeGiCheol

12/29/2024 at 07:38AM

184
#105 - Thor Döör / @throwpedro

12/02/2024 at 09:20PM

185
#106 - Dmitriy Brusenin / @Deimvis

12/14/2024 at 08:23PM

185
#107 - Jesus Vazquez / @jesusvazquez

03/28/2025 at 10:07AM

185
#108 - Kuba Orłowski / @silvanx

06/17/2025 at 05:04PM

190
#109 - Hassan Almasri / @hasalm

01/17/2026 at 09:51AM

204
#110 - Jesse Krensel / @jeklnd

12/18/2024 at 04:15AM

209
#111 - Kevin Gandolfi / @kevinGandolfi

04/26/2025 at 10:09PM

283
#112 - beethovn1204 / @beethovn1204

12/27/2024 at 02:41PM

285
#113 - Tim Rutter / @timrutter

11/25/2025 at 05:44PM

303
#114 - Mohammed Tangestani / @tangestani

01/04/2026 at 06:59PM

306
#115 - olivecha / @olivecha

05/09/2025 at 04:39AM

372
#116 - SoulMind01 / @SoulMind01

12/07/2024 at 07:05AM

649
#117 - SaneryiMatt / @SaneryiMatt

03/31/2025 at 11:41AM