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

Even and Odd

separate the even numbers from the odd numbers

Start file
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99

End file
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99

View Diff

1,101c1,2
< 0
< 1
< 2
< 3
< 4
< 5
< 6
< 7
< 8
< 9
< 10
< 11
< 12
< 13
< 14
< 15
< 16
< 17
< 18
< 19
< 20
< 21
< 22
< 23
< 24
< 25
< 26
< 27
< 28
< 29
< 30
< 31
< 32
< 33
< 34
< 35
< 36
< 37
< 38
< 39
< 40
< 41
< 42
< 43
< 44
< 45
< 46
< 47
< 48
< 49
< 50
< 51
< 52
< 53
< 54
< 55
< 56
< 57
< 58
< 59
< 60
< 61
< 62
< 63
< 64
< 65
< 66
< 67
< 68
< 69
< 70
< 71
< 72
< 73
< 74
< 75
< 76
< 77
< 78
< 79
< 80
< 81
< 82
< 83
< 84
< 85
< 86
< 87
< 88
< 89
< 90
< 91
< 92
< 93
< 94
< 95
< 96
< 97
< 98
< 99
< 
---
> 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98
> 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99

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 25 remaining solutions by signing in and submitting your own entry
#26 Monrath / @Monraths - Score: 36 - 08/07/26 @ 18:16
:%s/\n/ /g<CR>qw"Adwwq49@wdexO<Esc>"apx:wq<CR>

0 comments


Created by: @wpr____

26 active golfers, 82 entries

Leaderboard (lowest score wins):
13
#1 - Kai Nakamura / @Uniyo-Ltd

07/26/2026 at 06:57PM

13
#2 - AnTuA / @xAnTuA

08/04/2026 at 11:40AM

13
#3 - Violet / @VioletJewel

08/07/2026 at 06:20PM

14
#4 - bemmesr / @bemmesr

07/18/2026 at 12:56PM

14
#5 - “Smylers” / @Smylers2

07/20/2026 at 03:13PM

14
#6 - Alex Litchev / @alunity

07/21/2026 at 09:32PM

14
#7 - Chloronite / @Chloronite

07/22/2026 at 02:18AM

14
#8 - JCapretta / @JCapretta

07/24/2026 at 10:11AM

14
#9 - Alex / @AlexanderHeatl2

07/26/2026 at 10:28PM

14
#10 - Lutalli / @lutalli

07/26/2026 at 10:49PM

14
#11 - Bartek Rzepala / @jeanpi101

07/31/2026 at 04:05PM

14
#12 - Álvaro Veiga / @alvaromrveiga

08/02/2026 at 01:48AM

14
#13 - Peppa Pig / @PeppaPigSg

08/05/2026 at 03:42AM

16
#14 - Sebbito / @Sebbito

07/22/2026 at 09:15AM

17
#15 - MartinDanesh / @MartinDanesh

07/18/2026 at 12:38PM

18
#16 - gcarlossuarez / @gcarlossuarez

07/18/2026 at 11:41PM

19
#17 - Atharva Mahajan / @atharvam4

07/21/2026 at 12:09PM

20
#18 - manojkumar / @manojkumar-spotmies

07/21/2026 at 09:32AM

20
#19 - Malik Mohammed / @Abd-El-Qader

07/21/2026 at 03:15PM

22
#20 - Alexis Corporal / @Alexis12119

07/26/2026 at 01:49PM

30
#21 - Aman Singh / @amansingh909

08/07/2026 at 05:19AM

31
#22 - Nathan Heavner / @nathan_heavner

08/01/2026 at 11:56PM

32
#23 - Hadi Elnemr / @HadiElnemr

08/06/2026 at 11:32AM

33
#24 - Erick / @Flowever2626

08/06/2026 at 09:40AM

34
#25 - Takemura Ryoken / @tkmrrkn

07/26/2026 at 02:14PM

36
#26 - Monrath / @Monraths

08/07/2026 at 06:16PM