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):
74
#61 - Frederik F / @FrederikFrederiksenMancofi

11/28/2025 at 11:38AM

75
#62 - 0xf00ff00f / @0xf00ff00f

05/24/2025 at 07:56PM

75
#63 - constap / @constap

10/02/2025 at 04:39AM

76
#64 - cgamiz / @cgamiz

03/14/2025 at 05:56PM

76
#65 - Oleksandr Zymohliad / @ozymohliad

04/23/2025 at 06:20PM

77
#66 - Ming Wen / @OpenSubmarine-X

01/06/2025 at 10:56AM

78
#67 - Jesper Kristiansson / @jesperkristiansson

11/20/2025 at 10:30AM

79
#68 - ashfinal / @ashfinal

01/16/2025 at 03:41AM

79
#69 - Dani Bengl / @cb341

12/22/2025 at 08:57PM

79
#70 - UdonSari / @udonsari

06/18/2026 at 11:42AM

82
#71 - Bthxtly / @Bthxtly

01/02/2025 at 12:40PM

83
#72 - Chino / @MarcoMeinardi

01/12/2025 at 09:32AM

83
#73 - Hessesian / @Hessesian

05/27/2025 at 07:19PM

84
#74 - MartinDanesh / @MartinDanesh

11/15/2025 at 05:29PM

85
#75 - thierryharte / @thierryharte

04/18/2025 at 09:14PM

86
#76 - Sebastian Caicedo / @jsebdev

03/29/2025 at 11:18PM

86
#77 - Adrian Lym / @AJGamma

05/14/2025 at 01:58PM

86
#78 - Martin Georgiev / @martician1

12/20/2025 at 10:46PM

87
#79 - Hugh Davenport / @hughdavenport

02/26/2025 at 12:10AM

87
#80 - kloir-z / @kloir-z

01/12/2026 at 01:18PM

89
#81 - bothyhead / @bothyhead

05/05/2025 at 09:00PM

90
#82 - Gatsby76(Sloan Yang) / @Sloan-Yang

05/31/2025 at 11:24PM

90
#83 - Encar Salazar / @nekomangini

04/13/2026 at 12:29PM

91
#84 - Seva163 / @Seva163

04/06/2025 at 11:26AM

92
#85 - Colin Benner / @yzhs

01/11/2025 at 07:29PM

92
#86 - Tobias / @tobiasldn

06/20/2025 at 12:46PM

93
#87 - Daisuke Shimada / @cimadai

02/20/2025 at 12:03AM

94
#88 - Theo Lincke / @lincketheo

04/07/2025 at 11:44PM

98
#89 - Noitidart / @Noitidart

08/29/2026 at 04:59AM

99
#90 - Dmitrii / @tdragon

04/14/2025 at 07:22PM