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

397 active golfers, 1390 entries

Leaderboard (lowest score wins):
10
#121 - mariavimgolf / @mariavimgolf

01/16/2022 at 06:47PM

10
#122 - Eric Tran / @traneric94

01/18/2022 at 04:34AM

10
#123 - Ken / @kenc_

01/21/2022 at 05:13AM

10
#124 - Paul Page / @theRealPaulPage

01/21/2022 at 10:19PM

10
#125 - Sammit / @somemeatjain

01/22/2022 at 02:43PM

10
#126 - vian / @cocatrip

01/23/2022 at 05:44PM

10
#127 - Simon CHEVOLLEAU / @SimonCHEVOLLEA2

01/24/2022 at 05:05PM

10
#128 - m397 / @m39752809546

01/24/2022 at 09:31PM

10
#129 - Яков / @Higluos

01/25/2022 at 07:07PM

10
#130 - Luukas Pörtfors / @LPortfors

01/26/2022 at 02:38PM

10
#131 - nico yazawa / @yazawa268

01/29/2022 at 10:04PM

10
#132 - blub blub / @xyDZdMNGzWLT

02/01/2022 at 12:36PM

10
#133 - nighi / @nighi94854645

02/03/2022 at 09:56AM

10
#134 - Ya-suke / @ninja__01

02/05/2022 at 10:09AM

10
#135 - Fabian Becker 🇩🇪 / @geekproject

02/07/2022 at 11:25PM

10
#136 - Даня Ефимов / @Abberatus

02/09/2022 at 11:52AM

10
#137 - nd183 / @nd1832

02/19/2022 at 09:42AM

10
#138 - Justin / @jtmusky

02/19/2022 at 09:06PM

10
#139 - Nivis / @NivisSnep

02/21/2022 at 12:21PM

10
#140 - Justin Haaheim / @justinhaaheim

02/23/2022 at 01:58AM

10
#141 - Chris / @cridahtweets

02/23/2022 at 07:28PM

10
#142 - blabla zincou / @BZincou

02/24/2022 at 05:33PM

10
#143 - Youmu / @___Youmu___

02/25/2022 at 04:30PM

10
#144 - eastarpen / @eastarpen

02/28/2022 at 06:12AM

10
#145 - 子豪 王 / @zihaowa73544867

02/28/2022 at 09:04PM

10
#146 - Kyle Campbell / @Miyelsh

03/02/2022 at 03:50AM

10
#147 - Naughty Noodle / @NaughtyyNoodle

03/08/2022 at 10:45PM

10
#148 - タナイ / @okinawa__noodle

03/10/2022 at 03:17PM

10
#149 - math is what I hate / @mpnmbn

03/13/2022 at 10:22AM

10
#150 - Antonio D. González / @antoniodgonz

03/13/2022 at 02:05PM