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 50 remaining solutions by signing in and submitting your own entry
#51 SoulMind01 / @SoulMind01 - Score: 372 - 12/07/24 @ 07:05
cc1,2,3,4,5,6,7,8,9,10<Esc>jccOne,Two,H<BS>Three,Four,Five,Siz<BS>x,Seven,Eitht<BS><BS><BS>ght,Nine,Ten<Esc>j0vec<Esc>uveeeeeeeeeeeeeeeeedxlllla,<Esc>puuuu<C-R>llllli,<Esc>ua,<Esc>ppuuuuveeeeeeeeeeeeeeeeedllllla,<Esc>pbbbbbbeeevbbdepvbbbb<Esc><Esc>bvwdeeepua,<Esc>pbbbbbbbee:q<CR>:<BS>vbdweeeepbbbbbbbbvbdeeeeeeeepbbbbbbbbbbbveedeeeeeeeeeepbbbbbbbbbbbbvbdeeeeeeeeeeeep0wwwwwvwd$p0wwwvwd$px0xjccI,II,III,IV,V<BS>I<BS>V,VI,VII,VIII,IX,X:<BS><Esc>:w<CR>:q<CR>

0 comments


Created by: @maharba6

51 active golfers, 185 entries

Leaderboard (lowest score wins):
49
#31 - ashfinal / @ashfinal

01/16/2025 at 06:53PM

54
#32 - act-1F98A / @act-1F98A

01/14/2025 at 05:02AM

55
#33 - Heitor Dantas / @heitordnts

12/16/2024 at 07:37PM

57
#34 - LunaSakura / @Luna5akura

11/28/2024 at 08:07AM

57
#35 - Shoob / @martinshoob

12/02/2024 at 11:07AM

64
#36 - Matthew Finlayson / @mattf1n

12/10/2024 at 01:50AM

65
#37 - cmclausen / @cmclausen

01/24/2025 at 11:00AM

70
#38 - editor3D / @editor3D

11/27/2024 at 09:29PM

77
#39 - romantic-brutalist / @romantic-brutalist

12/15/2024 at 10:15AM

78
#40 - Buliway / @Buliway

11/30/2024 at 09:11PM

130
#41 - Harrison Zhu / @harrison-zhu_data

12/19/2024 at 08:21PM

133
#42 - Gedoy / @Gedoy9793

11/26/2024 at 11:34AM

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

12/20/2024 at 01:40PM

153
#44 - lovebigwei / @lovebigwei

12/19/2024 at 03:07AM

180
#45 - Maximiliano Aguirre / @MaximilianoAguirre

01/04/2025 at 01:36AM

182
#46 - LEE GI CHEOL / @LeeGiCheol

12/29/2024 at 07:38AM

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

12/02/2024 at 09:20PM

185
#48 - Dmitriy Brusenin / @Deimvis

12/14/2024 at 08:23PM

204
#49 - Jesse Krensel / @jeklnd

12/18/2024 at 04:15AM

283
#50 - beethovn1204 / @beethovn1204

12/27/2024 at 02:41PM

372
#51 - SoulMind01 / @SoulMind01

12/07/2024 at 07:05AM