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
#331 - Askhento / @Askhento1

10/05/2021 at 11:35PM

13
#332 - RandomAveragePlayer / @RandomVimUser

10/11/2021 at 04:40PM

13
#333 - леди питон / @SofiaLadyPython

10/24/2021 at 11:38PM

13
#334 - WhyIsThisFishInMyEar / @why_ear

11/20/2021 at 10:37AM

13
#335 - Shrutesh Patil / @patil_shrutesh

12/02/2021 at 09:04PM

13
#336 - tzvitzer / @tzvitzer1

12/21/2021 at 04:19PM

13
#337 - Gim Volfer / @GimVolfer

12/22/2021 at 05:14PM

13
#338 - Emiliano Pérez / @emiperez95

12/31/2021 at 03:54PM

13
#339 - Erik Öjebo / @erikojebo

01/22/2022 at 09:44PM

13
#340 - golferN / @golferN3

02/03/2022 at 09:26AM

13
#341 - stwice / @stwice

02/03/2022 at 04:00PM

13
#342 - Ivo Blöchliger / @aigledesalpes

02/05/2022 at 07:26PM

13
#343 - Jonas Gollenz / @bleeding_sledge

02/06/2022 at 02:15PM

13
#344 - Sergio Semedi / @SergioSemedi

02/09/2022 at 10:29PM

13
#345 - Henry Prior / @priorupdates

02/19/2022 at 06:21AM

13
#346 - Auri Iodide / @auri_iodide

03/08/2022 at 04:49AM

13
#347 - Gunter Kluge / @KlugeGunter

04/05/2022 at 03:31PM

13
#348 - Yochem van Rosmalen / @yoch3m

04/11/2022 at 09:10AM

13
#349 - Alex Ketchum / @alexjketchum

04/26/2022 at 06:49PM

13
#350 - Puzzlesbrony777 / @Puzzlesbrony777

04/30/2022 at 05:46PM

13
#351 - Javier Contreras / @contranton

05/04/2022 at 12:17AM

13
#352 - Calum Smith / @cpmsmith

05/30/2022 at 02:18PM

13
#353 - Andrew Morris / @andrew_morris

07/14/2022 at 11:09PM

13
#354 - djheidihoe / @djheidihoe1

07/18/2022 at 09:54PM

13
#355 - Gabriele / @lazygeb

07/29/2022 at 10:48PM

13
#356 - Laurent Atlan / @laurentatlan1

08/14/2022 at 08:42PM

13
#357 - Pheimors / @pheimors

10/02/2022 at 04:38PM

13
#358 - Chongchong He / @chongchonghe

10/08/2022 at 08:58PM

13
#359 - James Marshall / @astrophd

10/21/2022 at 08:20PM

13
#360 - James / @Dronak

10/23/2022 at 03:57AM