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

479 active golfers, 1672 entries

Leaderboard (lowest score wins):
10
#211 - Léo / @Leo58369183

08/29/2022 at 07:41AM

10
#212 - SlavWolf / @SlavWolf1

09/03/2022 at 08:42AM

10
#213 - 비비빅 / @bibibig80714274

09/03/2022 at 04:25PM

10
#214 - Ssu-Yuan Cheng / @szuyuan

09/11/2022 at 03:18PM

10
#215 - スー / @suesanjp_dev

09/13/2022 at 05:53AM

10
#216 - Janzen / @__Coos

09/13/2022 at 07:17AM

10
#217 - linestopaper / @linestopaper

09/14/2022 at 04:26AM

10
#218 - Andrew Liu / @AndrewL45936893

09/19/2022 at 04:22AM

10
#219 - Alex Lewin / @_AlexLewin

09/19/2022 at 04:55PM

10
#220 - Eivind Jahren / @HaskellElephant

09/19/2022 at 07:32PM

10
#221 - Austin Willliams / @GuitarMusash616

09/21/2022 at 06:11AM

10
#222 - キムラ・OPEL・ユウジ / @kimurayuuji79

09/30/2022 at 03:30AM

10
#223 - Karan / @Karan22350073

09/30/2022 at 11:02AM

10
#224 - Omar Alawadhi / @OmarAla59544225

10/06/2022 at 09:09PM

11
#225 - mevmev / @mevmev8

09/19/2021 at 07:28PM

11
#226 - Robert Verst / @r_verst

09/21/2021 at 12:51PM

11
#227 - Michel Viktor / @tomkpz

09/22/2021 at 07:25PM

11
#228 - Askhento / @askhento

10/05/2021 at 11:41PM

11
#229 - Salvador Tojo Quintela / @SalvadorTojo

10/08/2021 at 04:17PM

11
#230 - Robert Hendrickson / @RobertH72200659

10/09/2021 at 10:25PM

11
#231 - Steven Langsford / @stevenlangsford

10/10/2021 at 09:40AM

11
#232 - zendokite / @zendokite

10/18/2021 at 10:26AM

11
#233 - rezini mohamed / @rezmed0

10/20/2021 at 02:14PM

11
#234 - Андрей Осипенко / @os1penko_andrey

10/20/2021 at 05:07PM

11
#235 - preethamrn / @preethamrn

10/21/2021 at 07:19AM

11
#236 - r_dev / @dever_42

10/21/2021 at 12:48PM

11
#237 - Johan Arrhen / @JoPeArrhen

10/22/2021 at 07:55PM

11
#238 - Raiden di Rivia / @Raiden_di_Rivia

10/25/2021 at 11:49AM

11
#239 - Matrices Matlab #1 / @matrices_matlab

10/28/2021 at 12:21PM

11
#240 - 6cdh / @cd6cdh

11/01/2021 at 12:32PM