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

Sort and Tag

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

Start file
Charmander
____________________
Sprigatito
____________________
Meowscarada
____________________
Pikachu
____________________
Feraligatr
____________________
Hydreigon
____________________
Lucario
____________________
Blaziken
____________________
Dragonite
____________________
Garchomp
____________________
Pidgeot
____________________
Squirtle
____________________
Gardevoir
____________________
Alakazam
____________________
End file
[03] Charmander
____________________
[13] Sprigatito
____________________
[10] Meowscarada
____________________
[12] Pikachu
____________________
[05] Feraligatr
____________________
[08] Hydreigon
____________________
[09] Lucario
____________________
[02] Blaziken
____________________
[04] Dragonite
____________________
[06] Garchomp
____________________
[11] Pidgeot
____________________
[14] Squirtle
____________________
[07] Gardevoir
____________________
[01] Alakazam
____________________

View Diff

1c1
< Charmander
---
> [03] Charmander
3c3
< Sprigatito
---
> [13] Sprigatito
5c5
< Meowscarada
---
> [10] Meowscarada
7c7
< Pikachu
---
> [12] Pikachu
9c9
< Feraligatr
---
> [05] Feraligatr
11c11
< Hydreigon
---
> [08] Hydreigon
13c13
< Lucario
---
> [09] Lucario
15c15
< Blaziken
---
> [02] Blaziken
17c17
< Dragonite
---
> [04] Dragonite
19c19
< Garchomp
---
> [06] Garchomp
21c21
< Pidgeot
---
> [11] Pidgeot
23c23
< Squirtle
---
> [14] Squirtle
25c25
< Gardevoir
---
> [07] Gardevoir
27c27
< Alakazam
---
> [01] Alakazam

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 155 remaining solutions by signing in and submitting your own entry
#156 Atharva / @atharvaM04 - Score: 522 - 06/18/25 @ 12:59
:set paste<CR>dGi<50-53>[03] Charmander<CR>____________________<CR>[13] Sprigatito<CR>____________________<CR>[10] Meowscarada<CR>____________________<CR>[12] Pikachu<CR>____________________<CR>[05] Feraligatr<CR>____________________<CR>[08] Hydreigon<CR>____________________<CR>[09] Lucario<CR>____________________<CR>[02] Blaziken<CR>____________________<CR>[04] Dragonite<CR>____________________<CR>[06] Garchomp<CR>____________________<CR>[11] Pidgeot<CR>____________________<CR>[14] Squirtle<CR>____________________<CR>[07] Gardevoir<CR>____________________<CR>[01] Alakazam<CR>____________________<Esc>[201~<Esc>ZZ

0 comments


Created by: @maharba6

156 active golfers, 737 entries

Leaderboard (lowest score wins):
99
#91 - 803s38p2fi / @803s38p2fi

06/30/2025 at 05:03PM

100
#92 - dennis / @nagolove

12/18/2025 at 06:07PM

101
#93 - phix / @phix-42

01/25/2026 at 08:28AM

102
#94 - vombat203 / @vombat203

02/06/2025 at 08:53AM

102
#95 - Leon Kacowicz / @leonkacowicz

05/04/2025 at 11:11AM

102
#96 - Qiumix / @Qiumix

10/16/2025 at 11:36AM

102
#97 - Harun KoƧ / @Wueenzy

12/19/2025 at 06:04PM

105
#98 - yhgolf / @yhgolf1

01/11/2025 at 06:54PM

105
#99 - turtlefetus / @turtlefetus

07/04/2025 at 03:24AM

106
#100 - bcollins19 / @bcollins19

04/01/2025 at 10:37PM

106
#101 - Leonardo Dipilato / @LeonardoDipilato

06/03/2025 at 02:34PM

109
#102 - horc_zzz / @Horc-zh

01/01/2025 at 08:03AM

110
#103 - Aly Thobani / @alythobani

11/14/2025 at 10:36PM

113
#104 - e.cousinet / @ecousinet

02/15/2025 at 10:45AM

114
#105 - pajamaman7 aka tommyBuckets / @pajamaman7

10/10/2025 at 07:05PM

115
#106 - Kevin Jung / @kj-software-account

01/30/2025 at 10:07PM

116
#107 - TurtleMeds / @TurtleMeds

04/23/2025 at 06:08PM

116
#108 - Jorrit Stramer / @jstramer

05/25/2026 at 07:10PM

119
#109 - Gibson Starkweather / @boaf

05/24/2025 at 09:16PM

119
#110 - Frank Benoit / @frankb_stgt

05/25/2025 at 07:46AM

124
#111 - Andrey Rakhubovsky / @omnster

05/02/2025 at 09:47PM

124
#112 - Matthew Cooper / @mkcmkc

06/02/2025 at 11:57PM

125
#113 - enaygit / @enaygit

02/15/2025 at 04:22AM

125
#114 - Martin Knoller Stocker / @linuxswords

05/29/2025 at 01:36PM

125
#115 - Breemskin / @Breemskin

08/06/2025 at 05:49PM

126
#116 - Rian Butala / @ButalaRian13792

05/02/2025 at 11:39PM

126
#117 - tsui0 / @tsui0

06/24/2025 at 12:19AM

128
#118 - Oliver Green / @olijg

03/14/2025 at 03:10PM

128
#119 - user65536 / @user65536

10/10/2025 at 10:42AM

129
#120 - act-1F98A / @act-1F98A

01/13/2025 at 11:35PM