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

0 comments


Created by: @dstockwell

91 active golfers, 303 entries

Leaderboard (lowest score wins):
43
#31 - Hu Junfeng / @junfeng

07/19/2011 at 02:47PM

43
#32 - You-Siang Lin / @yslinnctu

12/02/2011 at 01:17AM

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

12/22/2011 at 06:24AM

43
#34 - Rod Knowlton / @codelahoma

05/26/2012 at 03:44PM

43
#35 - John Whitley / @johnwhitley

08/11/2012 at 06:46PM

43
#36 - James Davis / @tripvg

08/14/2012 at 02:36PM

43
#37 - Vim rocks / @vimrocks

10/07/2012 at 09:07PM

43
#38 - Boer Asten / @astenboer

11/08/2012 at 07:28AM

43
#39 - Drew Neil / @nelstrom

11/26/2012 at 09:13PM

43
#40 - Brent Carmer / @brent_carmer

04/14/2013 at 04:49AM

43
#41 - Thomas GUILLORY / @thomasguillory

02/28/2014 at 07:38PM

43
#42 - David Cao / @pciex3

06/05/2016 at 05:44PM

43
#43 - Johnny John / @JohnnyJ74406671

02/28/2020 at 03:18PM

44
#44 - a24f0600 / @a24f0600

01/28/2013 at 05:12PM

47
#45 - Ole Hansen / @0hansen

06/14/2014 at 01:03PM

47
#46 - Haoxuan Yue / @yuehaoxuanar

08/03/2014 at 12:08PM

49
#47 - Pratik / @prathik_t

08/11/2018 at 04:15AM

50
#48 - Mike Plotz / @antisuji

12/31/2010 at 08:49AM

52
#49 - William Dunand / @wdunand

11/29/2011 at 08:35AM

52
#50 - Vestrobaa / @Vestrobaa

07/21/2013 at 06:04PM

52
#51 - sean choi / @joosting

06/04/2021 at 02:12PM

53
#52 - foo / @foo88832727

10/20/2013 at 04:03PM

59
#53 - Aurélien Delahaye / @alkove

01/03/2011 at 01:16AM

63
#54 - Philip Roberts / @philip_roberts

06/16/2012 at 05:30PM

64
#55 - Przemysław Pawełczyk / @przemoc86

01/16/2011 at 01:05PM

66
#56 - Renat Aksitov / @Korvin79

02/18/2012 at 09:22AM

72
#57 - churaki / @churaki

01/29/2019 at 04:24AM

73
#58 - dominique pellé / @vimgolfisto

01/04/2011 at 03:03PM

76
#59 - Gurukandhamoorthi / @Gurukandhamoor1

09/07/2017 at 03:12PM

77
#60 - Ankit Shankar / @thelastnode

12/30/2010 at 09:25AM