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

546 active golfers, 1909 entries

Leaderboard (lowest score wins):
10
#181 - LordofFlies69 / @LFlies69

05/14/2022 at 04:34PM

10
#182 - Tim / @MarhjaKhazua

05/16/2022 at 05:53PM

10
#183 - russellzhaomao / @russellzhaomao

05/18/2022 at 09:36AM

10
#184 - Pablo Cárdenas / @pablo_cardenasb

05/20/2022 at 05:46AM

10
#185 - Ron / @ronnie9ball

05/22/2022 at 10:40PM

10
#186 - jcbglbmn / @JacobGelbman

05/23/2022 at 06:17AM

10
#187 - Levi Wheeler / @LeviWhe68726437

05/23/2022 at 09:21PM

10
#188 - Erisian Aspect / @ErisianAspect

05/23/2022 at 09:42PM

10
#189 - Xiaohuan Ye / @ikmijkk7

05/24/2022 at 07:10AM

10
#190 - こうき / @koki_112_g

05/26/2022 at 02:42AM

10
#191 - 一茶(ISSA) / @edge2992

05/29/2022 at 01:57AM

10
#192 - redbigyesnoGoThenWhy / @redbigyesno

05/30/2022 at 01:17PM

10
#193 - Luke Korn / @LukeKorn

06/01/2022 at 05:05PM

10
#194 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 06:06AM

10
#195 - Хью Джолли / @DzolliH

06/17/2022 at 03:35AM

10
#196 - kjghf3f9xf2 / @kjghf3f9xf2

06/17/2022 at 07:11AM

10
#197 - Will Long / @WillLon30283972

06/17/2022 at 03:51PM

10
#198 - }(⇒){ / @TangerinePlank

06/17/2022 at 08:35PM

10
#199 - M Joc / @MJoc72389438

06/25/2022 at 06:05PM

10
#200 - Alex / @AlexanderHeatl2

07/06/2022 at 07:17PM

10
#201 - Rammia🇨🇳 / @rammiahcn

07/11/2022 at 03:54PM

10
#202 - Andy Tockman / @atckmn

07/16/2022 at 02:19AM

10
#203 - Yannick / @Yannick88147038

07/19/2022 at 07:30PM

10
#204 - Александр Черенков / @AleksandrCeren3

07/23/2022 at 03:04AM

10
#205 - Danilo J. S. Bellini / @danilobellini

08/12/2022 at 03:43AM

10
#206 - James Houghton / @jamesthoughton

08/14/2022 at 04:11AM

10
#207 - makita0x01 / @Makita81234049

08/22/2022 at 08:56AM

10
#208 - brett / @brettyukich

08/26/2022 at 08:49AM

10
#209 - 'ymdarake / @ymdarake

08/27/2022 at 02:02PM

10
#210 - Brandon / @Brandon10678836

08/28/2022 at 11:13PM