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 504 remaining solutions by signing in and submitting your own entry
#505 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

505 active golfers, 1758 entries

Leaderboard (lowest score wins):
14
#391 - andro wei / @androwei1

05/24/2022 at 11:01AM

14
#392 - Pablo R. Dinella / @pablordinella

05/24/2022 at 11:57PM

14
#393 - yann / @ylsarto

06/20/2022 at 06:30AM

14
#394 - LEYO 💻 - Dev / @leoroullois

07/05/2022 at 09:42PM

14
#395 - Andy Tso / @AndyTso7

07/11/2022 at 02:00AM

14
#396 - cqjxx / @cqjxx1

07/18/2022 at 01:38PM

14
#397 - Abdelrahman Madkour / @A3Madkour

08/20/2022 at 08:32PM

14
#398 - K.Takao / @kit_tko

09/16/2022 at 02:01PM

15
#399 - Curtis Ault / @Curtis_Ault

11/04/2021 at 04:35PM

15
#400 - Matthew Beaumont / @mattybeau_dev

11/25/2021 at 11:33PM

15
#401 - Boris Rumyantsev / @rum_bd

01/02/2022 at 01:36PM

15
#402 - Aaron / @aaronvickers_

01/13/2022 at 11:59AM

15
#403 - caseyhadden / @caseyhadden

03/11/2022 at 04:54PM

15
#404 - kilims / @kilimsye

03/31/2022 at 03:14AM

15
#405 - Strageslol / @Strageslol

06/04/2022 at 07:32AM

15
#406 - zaxsne / @zaxsne

06/07/2022 at 01:45PM

15
#407 - PL Siddharth / @Havok1993

06/30/2022 at 12:17PM

15
#408 - Oleg Olesinski / @hex0n1

09/25/2022 at 10:09PM

15
#409 - Geek Boy / @Geek79

11/13/2022 at 07:54PM

16
#410 - Paradoxskin / @paradoxskin

10/11/2021 at 07:34AM

16
#411 - Reuben Sinclair / @reubenjsinclair

10/17/2021 at 12:53PM

16
#412 - Yi-Kai, Huang / @YiKaiHuang1226

10/26/2021 at 01:25PM

16
#413 - JoakimV / @Svamptroll

11/19/2021 at 12:58PM

16
#414 - Snurli / @Snurlipus

11/20/2021 at 03:31PM

16
#415 - izbr / @IBRice101

11/20/2021 at 05:03PM

16
#416 - Angel Kozlev / @AngelKozlev

12/26/2021 at 09:12AM

16
#417 - Jakob Weickmann / @jweickm

02/16/2022 at 08:25PM

16
#418 - James Casey / @hanavi

03/10/2022 at 10:55PM

16
#419 - Rodney Visser / @_Radnus

03/14/2022 at 06:32PM

16
#420 - Felice Candilio / @felicemcc

03/14/2022 at 11:09PM