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 135 remaining solutions by signing in and submitting your own entry
#136 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

136 active golfers, 659 entries

Leaderboard (lowest score wins):
109
#91 - horc_zzz / @Horc-zh

01/01/2025 at 08:03AM

110
#92 - Aly Thobani / @alythobani

11/14/2025 at 10:36PM

113
#93 - e.cousinet / @ecousinet

02/15/2025 at 10:45AM

114
#94 - pajamaman7 aka tommyBuckets / @pajamaman7

10/10/2025 at 07:05PM

115
#95 - Kevin Jung / @WizardRubic

01/30/2025 at 10:07PM

116
#96 - TurtleMeds / @TurtleMeds

04/23/2025 at 06:08PM

119
#97 - Gibson Starkweather / @boaf

05/24/2025 at 09:16PM

119
#98 - Frank Benoit / @frankb_stgt

05/25/2025 at 07:46AM

124
#99 - Andrey Rakhubovsky / @omnster

05/02/2025 at 09:47PM

124
#100 - Matthew Cooper / @mkcmkc

06/02/2025 at 11:57PM

125
#101 - enaygit / @enaygit

02/15/2025 at 04:22AM

125
#102 - Martin Knoller Stocker / @linuxswords

05/29/2025 at 01:36PM

125
#103 - Breemskin / @Breemskin

08/06/2025 at 05:49PM

126
#104 - Rian Butala / @ButalaRian13792

05/02/2025 at 11:39PM

126
#105 - tsui0 / @tsui0

06/24/2025 at 12:19AM

128
#106 - Oliver Green / @olijg

03/14/2025 at 03:10PM

128
#107 - user65536 / @user65536

10/10/2025 at 10:42AM

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

01/13/2025 at 11:35PM

129
#109 - potatonotfound / @potatonotfound

11/09/2025 at 10:20PM

131
#110 - ak@developer / @Ajay-056

04/27/2025 at 05:53AM

132
#111 - Thoro-las / @Thoro-las

03/28/2025 at 11:57PM

132
#112 - Norgus / @Norgus

05/21/2025 at 04:55PM

134
#113 - alekcey63 / @alekcey63

08/28/2025 at 12:14PM

137
#114 - LevanSamadashvili / @LevanSamadashvili

07/04/2025 at 02:23PM

138
#115 - Thomas Hargreaves / @waingro

02/21/2025 at 09:31AM

138
#116 - Maxime Delhaye / @friphazeph

03/26/2025 at 05:16PM

142
#117 - Isaac Salzman / @Czensored

07/17/2025 at 08:50AM

149
#118 - Caleb Abrams / @kingcabrams

01/06/2026 at 07:45PM

150
#119 - Kardo / @kardoj

10/04/2025 at 06:50AM

155
#120 - hartun9 / @hartun9

10/03/2025 at 06:04AM