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 by @Tom11Wh:

Unlock 16 remaining solutions by signing in and submitting your own entry
Created by: @maharba6

94 active golfers, 446 entries

Solutions by @Tom11Wh:
36
#8 - Tom11w / @Tom11Wh

05/12/2025 at 11:35AM

37
#>15 - Tom11w / @Tom11Wh

05/12/2025 at 11:32AM

40
#>20 - Tom11w / @Tom11Wh

05/12/2025 at 11:28AM

42
#>22 - Tom11w / @Tom11Wh

05/12/2025 at 11:17AM

46
#>24 - Tom11w / @Tom11Wh

05/12/2025 at 10:55AM

47
#>24 - Tom11w / @Tom11Wh

05/12/2025 at 10:53AM

48
#>27 - Tom11w / @Tom11Wh

05/12/2025 at 10:47AM

49
#>27 - Tom11w / @Tom11Wh

05/12/2025 at 10:43AM

50
#>27 - Tom11w / @Tom11Wh

05/12/2025 at 10:37AM

53
#>29 - Tom11w / @Tom11Wh

05/12/2025 at 10:32AM

55
#>29 - Tom11w / @Tom11Wh

05/12/2025 at 10:26AM

58
#>31 - Tom11w / @Tom11Wh

05/12/2025 at 10:12AM

62
#>38 - Tom11w / @Tom11Wh

05/12/2025 at 10:07AM

67
#>39 - Tom11w / @Tom11Wh

05/12/2025 at 10:03AM

82
#>45 - Tom11w / @Tom11Wh

05/12/2025 at 09:51AM

119
#>70 - Tom11w / @Tom11Wh

05/12/2025 at 09:21AM