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):
252
#91 - Hung Huu Hoang / @hungh3

01/02/2011 at 06:55AM

277
#92 - nickGPT / @nickandbro

08/28/2024 at 11:46PM

278
#93 - drio / @drio

01/09/2011 at 05:24PM

374
#94 - Ron Gejman / @rongejman

12/30/2010 at 07:08AM

374
#95 - Behnam Esfahbod / @zwnj

12/30/2010 at 10:25AM

374
#96 - Alain Gilbert / @alain_gilbert

12/31/2010 at 08:55PM

374
#97 - Joel Taylor / @joelteon_

01/01/2011 at 04:53AM

374
#98 - Stephan Weller / @stephan_weller

01/06/2011 at 10:45AM

374
#99 - じょんあば / @john_ababa

02/23/2012 at 03:49PM

374
#100 - Mister Knister / @vimgolf_ctrl_x

03/09/2016 at 12:41PM

376
#101 - vimja / @vimja666

03/16/2012 at 03:03AM

377
#102 - kofi_annanymous / @kofi_annanymous

08/12/2012 at 10:17PM

378
#103 - raj / @rajlekkala

12/30/2010 at 09:09AM

380
#104 - Mathias Fussenegger / @mfussenegger

06/07/2011 at 07:43PM

381
#105 - anakojm / @anakojm

07/13/2022 at 09:50PM