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

hello-world-vimgolf

Simple number generation

Start file
51
End file
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1

View Diff

1c1,50
< 51
---
> 50
> 49
> 48
> 47
> 46
> 45
> 44
> 43
> 42
> 41
> 40
> 39
> 38
> 37
> 36
> 35
> 34
> 33
> 32
> 31
> 30
> 29
> 28
> 27
> 26
> 25
> 24
> 23
> 22
> 21
> 20
> 19
> 18
> 17
> 16
> 15
> 14
> 13
> 12
> 11
> 10
> 9
> 8
> 7
> 6
> 5
> 4
> 3
> 2
> 1

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 100 remaining solutions by signing in and submitting your own entry
#101 不安きのこ / @fuannkinoko - Score: 152 - 10/17/21 @ 07:42
cw50<CR>49<CR>48<CR>47<CR>46<CR>45<CR>44<CR>43<CR>42<CR>41<CR>40<CR>39<CR>38<CR>37<CR>36<CR>35<CR>34<CR>33<CR>32<CR>31<CR>30<CR>29<CR>28<CR>27<CR>26<CR>25<CR>24<CR>23<CR>22<CR>21<CR>20<CR>19<CR>8<BS>18<CR>17<CR>16<CR>15<CR>14<CR>13<CR>12<CR>11<CR>10<CR>9<CR>8<CR>7<CR>6<CR>5<CR>4<CR>3<CR>2<CR>1<CR><Esc>dd:wq<CR>

0 comments


Created by: @thomasvodrazka

101 active golfers, 303 entries

Leaderboard (lowest score wins):
10
#31 - Richard Smith / @appsmithuk

09/30/2021 at 02:55PM

10
#32 - Toby Hawkins / @Toby_Hawkins

10/01/2021 at 12:09PM

10
#33 - David Elkouss / @d_elkouss

10/02/2021 at 03:43PM

10
#34 - Benny Boy / @bennyboy999

10/02/2021 at 06:41PM

10
#35 - Trong Kha Nguyen / @__ngtrongkha

10/03/2021 at 02:12AM

10
#36 - loupiot.veloce / @LoupiotVeloce

10/03/2021 at 08:59AM

10
#37 - thegoncharov / @thegoncharov

10/03/2021 at 11:06AM

10
#38 - cowai / @cowai

10/03/2021 at 07:48PM

10
#39 - Yeontaek Kim / @YeontaekK

10/04/2021 at 08:48AM

10
#40 - Miłosz Łakomy / @foobar01123

10/05/2021 at 07:24AM

10
#41 - Martin / @qvhzmh

10/05/2021 at 01:49PM

10
#42 - Sondre Lunde / @SondreSL

10/06/2021 at 08:43AM

10
#43 - Petro Тrouq / @zulolosi

10/06/2021 at 02:33PM

10
#44 - Tars / @cnTars

10/08/2021 at 03:54AM

10
#45 - Fabian Ahbeck / @FAhbeck

10/08/2021 at 03:53PM

10
#46 - Steve / @fourbitbots

10/08/2021 at 07:19PM

10
#47 - Absolutely Demonic / @KonosubaLife

10/09/2021 at 07:31PM

10
#48 - Bernard Smith / @BernardSmith892

10/10/2021 at 11:09PM

10
#49 - werererer / @werererer3

10/11/2021 at 03:05PM

10
#50 - Paul McDowell / @191_paul

10/11/2021 at 06:38PM

10
#51 - Julian Pottle / @jules_np

10/12/2021 at 04:29AM

10
#52 - Vijay Sapre / @vijay_sapre

10/12/2021 at 04:36PM

10
#53 - Phil / @Phil417956031

10/12/2021 at 08:28PM

10
#54 - nihilistkitten / @nihilistkitten1

10/14/2021 at 01:17AM

10
#55 - Super User / @WayanLW

10/15/2021 at 05:49AM

10
#56 - BryanYan / @BryanGoesPlaces

10/15/2021 at 06:08AM

10
#57 - Coral Carl / @CarlChaosCoral

10/15/2021 at 01:38PM

10
#58 - vimgolfleo / @vimgolfleo1

10/15/2021 at 02:47PM

11
#59 - mevmev / @mevmev8

09/19/2021 at 07:28PM

11
#60 - Robert Verst / @r_verst

09/21/2021 at 12:51PM