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
#151 - lydxn / @lydxn1

03/14/2022 at 04:39AM

10
#152 - Alex Fall / @alexandfall

03/15/2022 at 12:47PM

10
#153 - h / @tgen22334

03/17/2022 at 04:58AM

10
#154 - Shubh Agarwal / @shu7bh

03/20/2022 at 06:51PM

10
#155 - Richy Strnad / @RichardStrnad

03/20/2022 at 06:58PM

10
#156 - hamb / @hamb88140219

03/25/2022 at 04:28AM

10
#157 - Pedro Minicz / @pedrominicz

03/25/2022 at 03:59PM

10
#158 - Nougatine Naja / @NougatineNaja

03/26/2022 at 06:46PM

10
#159 - 서보현 / @ktseo41

04/02/2022 at 12:55PM

10
#160 - Leo Winters / @LeoPWinters

04/04/2022 at 10:42AM

10
#161 - John Xu / @xzzhiao

04/06/2022 at 02:07AM

10
#162 - James Duffy / @jduffy3

04/11/2022 at 03:11AM

10
#163 - Ansuman Bardalai / @abardalai

04/11/2022 at 07:31AM

10
#164 - William / @williamwjh

04/11/2022 at 05:28PM

10
#165 - chamow / @sbakeugs

04/13/2022 at 07:40PM

10
#166 - ff df / @ffdf93207177

04/18/2022 at 01:46AM

10
#167 - Tom11w / @Tom11Wh

04/22/2022 at 05:00PM

10
#168 - ._. / @Katharsic

04/23/2022 at 04:47PM

10
#169 - m3ta4a / @m3ta4a

04/23/2022 at 10:47PM

10
#170 - Enrique Santana / @esantanaya

04/24/2022 at 01:27AM

10
#171 - NicolasWebDev / @NicolasWebDev

04/27/2022 at 12:39AM

10
#172 - Eviber / @youvaaaaa

04/30/2022 at 07:42PM

10
#173 - quemeraisc / @quemeraisc

05/03/2022 at 11:32AM

10
#174 - jovyn / @jovyn_

05/03/2022 at 06:28PM

10
#175 - Edoardo Signorini / @Edoars

05/06/2022 at 02:24PM

10
#176 - Vitaliy A / @_vitaliy_a

05/07/2022 at 09:08PM

10
#177 - laityjet / @laityjet1

05/08/2022 at 04:11AM

10
#178 - unchi / @unchi10723002

05/08/2022 at 05:31AM

10
#179 - Marc Jethro Avila / @maje_avila

05/10/2022 at 01:14PM

10
#180 - ksvorfsha / @ksvorfsha

05/13/2022 at 03:30AM