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 4d1c27940e3d7832db000010

Prime Numbers

List the first 100 prime numbers.

Start file
Prime Numbers
End file
2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97
101
103
107
109
113
127
131
137
139
149
151
157
163
167
173
179
181
191
193
197
199
211
223
227
229
233
239
241
251
257
263
269
271
277
281
283
293
307
311
313
317
331
337
347
349
353
359
367
373
379
383
389
397
401
409
419
421
431
433
439
443
449
457
461
463
467
479
487
491
499
503
509
521
523
541

View Diff

1c1,100
< Prime Numbers
---
> 2
> 3
> 5
> 7
> 11
> 13
> 17
> 19
> 23
> 29
> 31
> 37
> 41
> 43
> 47
> 53
> 59
> 61
> 67
> 71
> 73
> 79
> 83
> 89
> 97
> 101
> 103
> 107
> 109
> 113
> 127
> 131
> 137
> 139
> 149
> 151
> 157
> 163
> 167
> 173
> 179
> 181
> 191
> 193
> 197
> 199
> 211
> 223
> 227
> 229
> 233
> 239
> 241
> 251
> 257
> 263
> 269
> 271
> 277
> 281
> 283
> 293
> 307
> 311
> 313
> 317
> 331
> 337
> 347
> 349
> 353
> 359
> 367
> 373
> 379
> 383
> 389
> 397
> 401
> 409
> 419
> 421
> 431
> 433
> 439
> 443
> 449
> 457
> 461
> 463
> 467
> 479
> 487
> 491
> 499
> 503
> 509
> 521
> 523
> 541

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 104 remaining solutions by signing in and submitting your own entry
#105 anakojm / @anakojm - Score: 381 - 07/13/22 @ 21:50
C<50-53>2<NL>3<NL>5<NL>7<NL>11<NL>13<NL>17<NL>19<NL>23<NL>29<NL>31<NL>37<NL>41<NL>43<NL>47<NL>53<NL>59<NL>61<NL>67<NL>71<NL>73<NL>79<NL>83<NL>89<NL>97<NL>101<NL>103<NL>107<NL>109<NL>113<NL>127<NL>131<NL>137<NL>139<NL>149<NL>151<NL>157<NL>163<NL>167<NL>173<NL>179<NL>181<NL>191<NL>193<NL>197<NL>199<NL>211<NL>223<NL>227<NL>229<NL>233<NL>239<NL>241<NL>251<NL>257<NL>263<NL>269<NL>271<NL>277<NL>281<NL>283<NL>293<NL>307<NL>311<NL>313<NL>317<NL>331<NL>337<NL>347<NL>349<NL>353<NL>359<NL>367<NL>373<NL>379<NL>383<NL>389<NL>397<NL>401<NL>409<NL>419<NL>421<NL>431<NL>433<NL>439<NL>443<NL>449<NL>457<NL>461<NL>463<NL>467<NL>479<NL>487<NL>491<NL>499<NL>503<NL>509<NL>521<NL>523<NL>541<Esc>[201~<Esc>ZZ

0 comments


Created by: @dstockwell

105 active golfers, 374 entries

Leaderboard (lowest score wins):
40
#31 - James Maguire / @3rdMaguire

06/12/2017 at 07:17PM

40
#32 - りん / @mizuwumi

07/30/2021 at 02:47PM

40
#33 - @grhkm@infosec.exchange / @grhkm21

12/20/2022 at 12:37PM

43
#34 - Matthew Draper / @_matthewd

12/31/2010 at 05:11AM

43
#35 - Wei Dai / @clvv42

12/31/2010 at 05:56AM

43
#36 - Glenn / @spamcow_moo

01/03/2011 at 06:08PM

43
#37 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 02:05PM

43
#38 - Balkoth / @_Balkoth_

01/08/2011 at 10:28PM

43
#39 - Oleg Roshupkin / @jjjahson

01/22/2011 at 08:29AM

43
#40 - SirVer / @SirVerII

01/24/2011 at 01:07PM

43
#41 - Justin Love / @wondible

06/24/2011 at 03:39PM

43
#42 - Junfeng / @junfeng

07/19/2011 at 02:47PM

43
#43 - You-Siang Lin / @yslinnctu

12/02/2011 at 01:17AM

43
#44 - Jaime A. Sánchez / @jashbeta

12/22/2011 at 06:24AM

43
#45 - Rod Knowlton / @codelahoma

05/26/2012 at 03:44PM

43
#46 - John Whitley / @johnwhitley

08/11/2012 at 06:46PM

43
#47 - James Davis / @tripvg

08/14/2012 at 02:36PM

43
#48 - Vim rocks / @vimrocks

10/07/2012 at 09:07PM

43
#49 - Boer Asten / @astenboer

11/08/2012 at 07:28AM

43
#50 - Drew Neil / @nelstrom

11/26/2012 at 09:13PM

43
#51 - Brent Carmer / @brent_carmer

04/14/2013 at 04:49AM

43
#52 - Thomas GUILLORY / @thomasguillory

02/28/2014 at 07:38PM

43
#53 - David Cao / @pciex3

06/05/2016 at 05:44PM

43
#54 - Johnny John / @JohnnyJ74406671

02/28/2020 at 03:18PM

44
#55 - a24f0600 / @a24f0600

01/28/2013 at 05:12PM

47
#56 - Ole Hansen / @0hansen

06/14/2014 at 01:03PM

47
#57 - Haoxuan Yue / @yuehaoxuanar

08/03/2014 at 12:08PM

49
#58 - Pratik / @prathik_t

08/11/2018 at 04:15AM

50
#59 - Mike Plotz / @antisuji

12/31/2010 at 08:49AM

52
#60 - William Dunand / @wdunand

11/29/2011 at 08:35AM