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 508 remaining solutions by signing in and submitting your own entry
#509 Nikita Lezya / @NikitaLezya - Score: 198 - 03/30/22 @ 13:47
<Right>r0o49o<BS><CR>48<CR>3<BS>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>24<BS><BS>34<CR>33<CR>32<CR>31<CR>30<CR>2928<BS><BS><CR>28<CR>27<CR>26<CR>25<CR>24<CR>23<CR>22<CR>21<CR>20<CR>19<CR>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:w<BS><BS><Esc>:w<CR><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down>:q<CR>

0 comments


Created by: @thomasvodrazka

509 active golfers, 1768 entries

Leaderboard (lowest score wins):
13
#361 - Mortiz.Hsu / @mortiz_h

12/01/2022 at 10:09AM

14
#362 - Saurav / @ray__saurav

09/23/2021 at 06:14AM

14
#363 - ever0de / @ever0de

09/24/2021 at 01:50AM

14
#364 - Andy Novocin / @AndyNovocin

09/24/2021 at 09:10PM

14
#365 - NotANorthernGay / @notanortherngay

09/25/2021 at 11:55AM

14
#366 - ░C░o░o░p░e░r░ ░L░u░c░e░ / @16cluce

09/28/2021 at 10:55PM

14
#367 - Fishery Agency / @fishsouprecipe

09/30/2021 at 05:44PM

14
#368 - Gordon / @gordonbourdain

10/07/2021 at 03:02PM

14
#369 - z_r_a / @z_r_a

10/10/2021 at 07:48AM

14
#370 - v3rse / @NanaOAdane

10/12/2021 at 09:20PM

14
#371 - John Other / @john_other

10/24/2021 at 01:59AM

14
#372 - David Cherednik / @david_cherednik

10/24/2021 at 07:39PM

14
#373 - pmnord / @pmnord

11/01/2021 at 03:50PM

14
#374 - Eric Söderström / @eksoderstrom

11/04/2021 at 05:47PM

14
#375 - Jon Powers / @JonKPowers

11/06/2021 at 04:20AM

14
#376 - Sergio / @SergioVl12

11/28/2021 at 05:15PM

14
#377 - Christopher Williams / @chrstphrsnw

12/06/2021 at 10:36PM

14
#378 - Yassine Deghaies / @MDeghaies

01/01/2022 at 04:48AM

14
#379 - thevimgolfer / @thevimgolfer

01/05/2022 at 05:39PM

14
#380 - mattp (part of the 💉💉💉 club) / @mattpep

01/19/2022 at 02:06PM

14
#381 - asd bsd / @asdbsd15569049

02/06/2022 at 06:05PM

14
#382 - Carlos Gracia / @Elrauk

02/21/2022 at 04:26PM

14
#383 - Ashley Feniello / @AshleyFen

02/22/2022 at 01:55AM

14
#384 - 윤승후 / @yunseunghu7

03/04/2022 at 06:21AM

14
#385 - Julio C. Pompa Puente / @JCPompaPuente

03/19/2022 at 12:55AM

14
#386 - asayake / @995himada

03/21/2022 at 06:29AM

14
#387 - Daneil yan / @ex4722

03/30/2022 at 09:11PM

14
#388 - Jason Kuan | jasonkuan.eth / @Jason9075Kuan

04/06/2022 at 02:10AM

14
#389 - François / @mortyZZ

04/19/2022 at 04:46PM

14
#390 - Pierre-Olivier Proulx / @PierreO57066096

04/22/2022 at 02:23AM