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):
81
#61 - I / @ForgetIt17

10/15/2013 at 12:29PM

81
#62 - Alexey Filonenko / @BrightOne_LS

01/07/2017 at 10:46PM

83
#63 - Joonas Pihlajamaa / @jokkebk

02/21/2014 at 01:25PM

84
#64 - yusukesasaki / @yysaki

08/27/2013 at 01:23PM

88
#65 - Marcin Szamotulski / @me_coot

09/18/2012 at 10:28PM

89
#66 - Israel Chauca F. / @Raimondi

01/01/2011 at 07:10AM

89
#67 - Prody / @Prody225

08/13/2012 at 02:18AM

91
#68 - dirkrob / @dirkrob1

06/20/2020 at 01:23AM

94
#69 - Trevor Powell / @DoomedBunnies

12/07/2011 at 05:39AM

96
#70 - Kurt Gaastra / @KGaastra

02/15/2012 at 04:37AM

104
#71 - Tim Chase / @gumnos

01/13/2011 at 08:31PM

112
#72 - Black Wolf / @LoboVimGolf

06/17/2011 at 09:05AM

115
#73 - clint tseng / @cxlt

12/30/2010 at 09:46PM

135
#74 - Pete Johns / @johnsyweb

01/10/2011 at 04:58PM

147
#75 - mightyfoo / @mightyfoo

05/26/2011 at 04:10PM

169
#76 - Anakin / @xdxter

12/22/2016 at 08:12AM

192
#77 - h_east (トロッコ6個) / @h_east

01/29/2011 at 01:12PM

192
#78 - alex / @alexAngle8

08/22/2015 at 12:25AM

252
#79 - Hung Huu Hoang / @hungh3

01/02/2011 at 06:55AM

278
#80 - drio / @drio

01/09/2011 at 05:24PM

374
#81 - Ron Gejman / @rongejman

12/30/2010 at 07:08AM

374
#82 - Behnam Esfahbod / @zwnj

12/30/2010 at 10:25AM

374
#83 - Alain Gilbert / @alain_gilbert

12/31/2010 at 08:55PM

374
#84 - Joel Taylor / @joelteon_

01/01/2011 at 04:53AM

374
#85 - Stephan Weller / @stephan_weller

01/06/2011 at 10:45AM

374
#86 - 無ん垢の叫び / @john_ababa

02/23/2012 at 03:49PM

374
#87 - Mister Knister / @vimgolf_ctrl_x

03/09/2016 at 12:41PM

376
#88 - vimja / @vimja666

03/16/2012 at 03:03AM

377
#89 - kofi_annanymous / @kofi_annanymous

08/12/2012 at 10:17PM

378
#90 - raj / @rajlekkala

12/30/2010 at 09:09AM