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

85 active golfers, 261 entries

Leaderboard (lowest score wins):
34
#1 - Urtica dioica / @udioica

09/16/2016 at 12:26AM

34
#2 - John Braxler / @braxler

09/16/2016 at 07:47PM

34
#3 - Turkey Man / @lvturkeyman

12/18/2017 at 07:31AM

37
#4 - Kerson Hsiao / @KersonHsiao

05/25/2018 at 03:13PM

38
#5 - Marchand Paul-Valère / @pvmarch

03/03/2014 at 09:50PM

39
#6 - Joseph J. Piché / @jjpiche

08/26/2012 at 05:32AM

39
#7 - Conner McDaniel / @connermcd

09/19/2012 at 04:22AM

39
#8 - Hubba / @HubbaBubbaFett

12/27/2012 at 06:33PM

39
#9 - Petro Тrouq / @zulolosi

02/10/2013 at 10:19PM

39
#10 - pftb12345 / @pftb12345

03/29/2015 at 12:43AM

39
#11 - compuserved / @compuserved

10/04/2015 at 05:30AM

39
#12 - Sassan Haradji / @sassanh

01/28/2016 at 01:18AM

39
#13 - Hao Chen / @Chen_Hao

03/14/2016 at 12:46PM

39
#14 - Jon Krause / @jkrause314

04/04/2016 at 03:24AM

39
#15 - Cristian Lupașcu / @clupasq

04/06/2016 at 02:55PM

39
#16 - kana / @kana1

04/21/2016 at 03:35PM

39
#17 - Tom BP / @ThosBP

04/21/2017 at 10:12AM

39
#18 - zava / @znl1087

09/07/2017 at 10:31AM

40
#19 - James Maguire / @3rdMaguire

06/12/2017 at 07:17PM

43
#20 - Matthew Draper / @_matthewd

12/31/2010 at 05:11AM

43
#21 - Wei Dai / @clvv42

12/31/2010 at 05:56AM

43
#22 - Glenn / @spamcow_moo

01/03/2011 at 06:08PM

43
#23 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 02:05PM

43
#24 - Balkoth / @_Balkoth_

01/08/2011 at 10:28PM

43
#25 - Oleg Roshupkin / @jjjahson

01/22/2011 at 08:29AM

43
#26 - SirVer / @SirVerII

01/24/2011 at 01:07PM

43
#27 - Justin Love / @wondible

06/24/2011 at 03:39PM

43
#28 - Hu Junfeng / @junfeng

07/19/2011 at 02:47PM

43
#29 - You-Siang Lin / @yslinnctu

12/02/2011 at 01:17AM

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

12/22/2011 at 06:24AM