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 5b0ba8a4dd701305aeb59201

Number Sort

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

Start file
960
90
196
650
219
422
513
184
146
885
695
409
974
415
307
784
43
477
140
651
137
648
119
906
228
473
940
408
931
99
661
426
540
832
575
996
970
385
243
147
888
915
521
482
451
702
667
697
478
368
987
636
921
829
681
46
766
598
999
132
626
726
245
312
199
902
420
715
835
811
145
959
221
734
514
520
645
357
838
950
993
899
430
338
327
26
124
374
135
817
403
101
47
882
933
339
192
666
946
793
692
688
605
529
4
323
789
468
396
912
606
449
31
308
421
799
656
769
844
131
743
920
783
432
320
948
790
595
512
696
872
689
916
621
231
208
633
445
57
412
945
627
263
325
217
56
345
805
895
340
590
429
324
187
23
34
413
617
919
732
549
772
5
377
683
485
973
329
313
126
552
924
855
559
175
207
742
771
991
763
883
69
988
729
824
876
48
898
580
222
180
718
524
366
501
721
630
462
812
443
130
62
332
561
568
1
66
490
386
995
884
152
298
10
441
934
239
800
813
543
935
300
53
44
659
170
951
922
3
186
591
544
2
96
706
218
775
395
211
622
162
516
930
257
947
607
896
740
64
68
317
51
655
997
963
424
197
13
400
352
745
968
434
551
92
122
866
203
976
587
405
699
52
642
803
109
592
760
54
647
828
168
354
953
251
476
843
757
929
565
247
448
250
534
733
11
191
755
823
148
754
809
577
518
539
190
765
276
955
294
541
253
701
475
206
375
557
615
113
25
853
779
499
216
493
30
142
725
808
279
65
749
600
949
80
82
97
288
394
24
674
398
28
640
365
854
664
159
411
399
1000
193
427
758
459
333
849
525
350
901
641
553
201
936
542
16
428
178
45
141
810
165
652
455
185
830
746
687
925
123
433
306
444
503
389
37
635
183
747
452
794
41
868
376
804
486
234
818
722
481
890
748
238
778
711
719
984
438
550
85
282
291
19
634
983
467
566
603
287
311
87
235
676
807
129
738
295
344
998
161
75
360
535
336
911
156
209
150
875
880
315
281
584
379
414
480
833
927
507
367
9
582
233
94
67
261
509
684
278
848
285
918
404
232
127
275
93
562
177
560
293
172
943
774
678
586
827
837
343
764
418
84
939
679
176
447
662
588
391
952
781
822
962
894
523
616
992
483
83
785
End file
1
2
3
4
5
9
10
11
13
16
19
23
24
25
26
28
30
31
34
37
41
43
44
45
46
47
48
51
52
53
54
56
57
62
64
65
66
67
68
69
75
80
82
83
84
85
87
90
92
93
94
96
97
99
101
109
113
119
122
123
124
126
127
129
130
131
132
135
137
140
141
142
145
146
147
148
150
152
156
159
161
162
165
168
170
172
175
176
177
178
180
183
184
185
186
187
190
191
192
193
196
197
199
201
203
206
207
208
209
211
216
217
218
219
221
222
228
231
232
233
234
235
238
239
243
245
247
250
251
253
257
261
263
275
276
278
279
281
282
285
287
288
291
293
294
295
298
300
306
307
308
311
312
313
315
317
320
323
324
325
327
329
332
333
336
338
339
340
343
344
345
350
352
354
357
360
365
366
367
368
374
375
376
377
379
385
386
389
391
394
395
396
398
399
400
403
404
405
408
409
411
412
413
414
415
418
420
421
422
424
426
427
428
429
430
432
433
434
438
441
443
444
445
447
448
449
451
452
455
459
462
467
468
473
475
476
477
478
480
481
482
483
485
486
490
493
499
501
503
507
509
512
513
514
516
518
520
521
523
524
525
529
534
535
539
540
541
542
543
544
549
550
551
552
553
557
559
560
561
562
565
566
568
575
577
580
582
584
586
587
588
590
591
592
595
598
600
603
605
606
607
615
616
617
621
622
626
627
630
633
634
635
636
640
641
642
645
647
648
650
651
652
655
656
659
661
662
664
666
667
674
676
678
679
681
683
684
687
688
689
692
695
696
697
699
701
702
706
711
715
718
719
721
722
725
726
729
732
733
734
738
740
742
743
745
746
747
748
749
754
755
757
758
760
763
764
765
766
769
771
772
774
775
778
779
781
783
784
785
789
790
793
794
799
800
803
804
805
807
808
809
810
811
812
813
817
818
822
823
824
827
828
829
830
832
833
835
837
838
843
844
848
849
853
854
855
866
868
872
875
876
880
882
883
884
885
888
890
894
895
896
898
899
901
902
906
911
912
915
916
918
919
920
921
922
924
925
927
929
930
931
933
934
935
936
939
940
943
945
946
947
948
949
950
951
952
953
955
959
960
962
963
968
970
973
974
976
983
984
987
988
991
992
993
995
996
997
998
999
1000

View Diff

1,104c1,3
< 960
< 90
< 196
< 650
< 219
< 422
< 513
< 184
< 146
< 885
< 695
< 409
< 974
< 415
< 307
< 784
< 43
< 477
< 140
< 651
< 137
< 648
< 119
< 906
< 228
< 473
< 940
< 408
< 931
< 99
< 661
< 426
< 540
< 832
< 575
< 996
< 970
< 385
< 243
< 147
< 888
< 915
< 521
< 482
< 451
< 702
< 667
< 697
< 478
< 368
< 987
< 636
< 921
< 829
< 681
< 46
< 766
< 598
< 999
< 132
< 626
< 726
< 245
< 312
< 199
< 902
< 420
< 715
< 835
< 811
< 145
< 959
< 221
< 734
< 514
< 520
< 645
< 357
< 838
< 950
< 993
< 899
< 430
< 338
< 327
< 26
< 124
< 374
< 135
< 817
< 403
< 101
< 47
< 882
< 933
< 339
< 192
< 666
< 946
< 793
< 692
< 688
< 605
< 529
---
> 1
> 2
> 3
106,154c5,11
< 323
< 789
< 468
< 396
< 912
< 606
< 449
< 31
< 308
< 421
< 799
< 656
< 769
< 844
< 131
< 743
< 920
< 783
< 432
< 320
< 948
< 790
< 595
< 512
< 696
< 872
< 689
< 916
< 621
< 231
< 208
< 633
< 445
< 57
< 412
< 945
< 627
< 263
< 325
< 217
< 56
< 345
< 805
< 895
< 340
< 590
< 429
< 324
< 187
---
> 5
> 9
> 10
> 11
> 13
> 16
> 19
155a13,18
> 24
> 25
> 26
> 28
> 30
> 31
157,186c20,26
< 413
< 617
< 919
< 732
< 549
< 772
< 5
< 377
< 683
< 485
< 973
< 329
< 313
< 126
< 552
< 924
< 855
< 559
< 175
< 207
< 742
< 771
< 991
< 763
< 883
< 69
< 988
< 729
< 824
< 876
---
> 37
> 41
> 43
> 44
> 45
> 46
> 47
188,201c28,33
< 898
< 580
< 222
< 180
< 718
< 524
< 366
< 501
< 721
< 630
< 462
< 812
< 443
< 130
---
> 51
> 52
> 53
> 54
> 56
> 57
203,206c35,36
< 332
< 561
< 568
< 1
---
> 64
> 65
208,211c38,77
< 490
< 386
< 995
< 884
---
> 67
> 68
> 69
> 75
> 80
> 82
> 83
> 84
> 85
> 87
> 90
> 92
> 93
> 94
> 96
> 97
> 99
> 101
> 109
> 113
> 119
> 122
> 123
> 124
> 126
> 127
> 129
> 130
> 131
> 132
> 135
> 137
> 140
> 141
> 142
> 145
> 146
> 147
> 148
> 150
213,225c79,84
< 298
< 10
< 441
< 934
< 239
< 800
< 813
< 543
< 935
< 300
< 53
< 44
< 659
---
> 156
> 159
> 161
> 162
> 165
> 168
227,229c86,94
< 951
< 922
< 3
---
> 172
> 175
> 176
> 177
> 178
> 180
> 183
> 184
> 185
231,238c96,109
< 591
< 544
< 2
< 96
< 706
< 218
< 775
< 395
---
> 187
> 190
> 191
> 192
> 193
> 196
> 197
> 199
> 201
> 203
> 206
> 207
> 208
> 209
240,243c111,130
< 622
< 162
< 516
< 930
---
> 216
> 217
> 218
> 219
> 221
> 222
> 228
> 231
> 232
> 233
> 234
> 235
> 238
> 239
> 243
> 245
> 247
> 250
> 251
> 253
245,250c132,155
< 947
< 607
< 896
< 740
< 64
< 68
---
> 261
> 263
> 275
> 276
> 278
> 279
> 281
> 282
> 285
> 287
> 288
> 291
> 293
> 294
> 295
> 298
> 300
> 306
> 307
> 308
> 311
> 312
> 313
> 315
252,258c157,194
< 51
< 655
< 997
< 963
< 424
< 197
< 13
---
> 320
> 323
> 324
> 325
> 327
> 329
> 332
> 333
> 336
> 338
> 339
> 340
> 343
> 344
> 345
> 350
> 352
> 354
> 357
> 360
> 365
> 366
> 367
> 368
> 374
> 375
> 376
> 377
> 379
> 385
> 386
> 389
> 391
> 394
> 395
> 396
> 398
> 399
260,270c196,197
< 352
< 745
< 968
< 434
< 551
< 92
< 122
< 866
< 203
< 976
< 587
---
> 403
> 404
272,291c199,224
< 699
< 52
< 642
< 803
< 109
< 592
< 760
< 54
< 647
< 828
< 168
< 354
< 953
< 251
< 476
< 843
< 757
< 929
< 565
< 247
---
> 408
> 409
> 411
> 412
> 413
> 414
> 415
> 418
> 420
> 421
> 422
> 424
> 426
> 427
> 428
> 429
> 430
> 432
> 433
> 434
> 438
> 441
> 443
> 444
> 445
> 447
293,303c226,255
< 250
< 534
< 733
< 11
< 191
< 755
< 823
< 148
< 754
< 809
< 577
---
> 449
> 451
> 452
> 455
> 459
> 462
> 467
> 468
> 473
> 475
> 476
> 477
> 478
> 480
> 481
> 482
> 483
> 485
> 486
> 490
> 493
> 499
> 501
> 503
> 507
> 509
> 512
> 513
> 514
> 516
304a257,264
> 520
> 521
> 523
> 524
> 525
> 529
> 534
> 535
306,310c266
< 190
< 765
< 276
< 955
< 294
---
> 540
312,316c268,275
< 253
< 701
< 475
< 206
< 375
---
> 542
> 543
> 544
> 549
> 550
> 551
> 552
> 553
318,332c277,296
< 615
< 113
< 25
< 853
< 779
< 499
< 216
< 493
< 30
< 142
< 725
< 808
< 279
< 65
< 749
---
> 559
> 560
> 561
> 562
> 565
> 566
> 568
> 575
> 577
> 580
> 582
> 584
> 586
> 587
> 588
> 590
> 591
> 592
> 595
> 598
334,343c298,313
< 949
< 80
< 82
< 97
< 288
< 394
< 24
< 674
< 398
< 28
---
> 603
> 605
> 606
> 607
> 615
> 616
> 617
> 621
> 622
> 626
> 627
> 630
> 633
> 634
> 635
> 636
345,360d314
< 365
< 854
< 664
< 159
< 411
< 399
< 1000
< 193
< 427
< 758
< 459
< 333
< 849
< 525
< 350
< 901
362,372c316,321
< 553
< 201
< 936
< 542
< 16
< 428
< 178
< 45
< 141
< 810
< 165
---
> 642
> 645
> 647
> 648
> 650
> 651
374,376c323,365
< 455
< 185
< 830
---
> 655
> 656
> 659
> 661
> 662
> 664
> 666
> 667
> 674
> 676
> 678
> 679
> 681
> 683
> 684
> 687
> 688
> 689
> 692
> 695
> 696
> 697
> 699
> 701
> 702
> 706
> 711
> 715
> 718
> 719
> 721
> 722
> 725
> 726
> 729
> 732
> 733
> 734
> 738
> 740
> 742
> 743
> 745
378,388d366
< 687
< 925
< 123
< 433
< 306
< 444
< 503
< 389
< 37
< 635
< 183
390,401d367
< 452
< 794
< 41
< 868
< 376
< 804
< 486
< 234
< 818
< 722
< 481
< 890
403c369,383
< 238
---
> 749
> 754
> 755
> 757
> 758
> 760
> 763
> 764
> 765
> 766
> 769
> 771
> 772
> 774
> 775
405,423c385,398
< 711
< 719
< 984
< 438
< 550
< 85
< 282
< 291
< 19
< 634
< 983
< 467
< 566
< 603
< 287
< 311
< 87
< 235
< 676
---
> 779
> 781
> 783
> 784
> 785
> 789
> 790
> 793
> 794
> 799
> 800
> 803
> 804
> 805
425,446c400,415
< 129
< 738
< 295
< 344
< 998
< 161
< 75
< 360
< 535
< 336
< 911
< 156
< 209
< 150
< 875
< 880
< 315
< 281
< 584
< 379
< 414
< 480
---
> 808
> 809
> 810
> 811
> 812
> 813
> 817
> 818
> 822
> 823
> 824
> 827
> 828
> 829
> 830
> 832
448,459c417,421
< 927
< 507
< 367
< 9
< 582
< 233
< 94
< 67
< 261
< 509
< 684
< 278
---
> 835
> 837
> 838
> 843
> 844
461c423,450
< 285
---
> 849
> 853
> 854
> 855
> 866
> 868
> 872
> 875
> 876
> 880
> 882
> 883
> 884
> 885
> 888
> 890
> 894
> 895
> 896
> 898
> 899
> 901
> 902
> 906
> 911
> 912
> 915
> 916
463,482c452,465
< 404
< 232
< 127
< 275
< 93
< 562
< 177
< 560
< 293
< 172
< 943
< 774
< 678
< 586
< 827
< 837
< 343
< 764
< 418
< 84
---
> 919
> 920
> 921
> 922
> 924
> 925
> 927
> 929
> 930
> 931
> 933
> 934
> 935
> 936
484,489c467,475
< 679
< 176
< 447
< 662
< 588
< 391
---
> 940
> 943
> 945
> 946
> 947
> 948
> 949
> 950
> 951
491,492c477,480
< 781
< 822
---
> 953
> 955
> 959
> 960
494,496c482,492
< 894
< 523
< 616
---
> 963
> 968
> 970
> 973
> 974
> 976
> 983
> 984
> 987
> 988
> 991
498,500c494,500
< 483
< 83
< 785
---
> 993
> 995
> 996
> 997
> 998
> 999
> 1000

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 95 remaining solutions by signing in and submitting your own entry
#96 Jurica / @Jurica34581259 - Score: 100 - 11/16/18 @ 12:25
:let c=1<CR>:while c<=1000<CR>exectu<BS><BS>ute 'normal ' . search("^".c."$") .'GddGp'<CR>c<BS>let c=c+1<CR>endwhile<CR>:wq<CR>

0 comments


Created by: @MateiCopot

96 active golfers, 180 entries

Leaderboard (lowest score wins):
9
#31 - Vimg / @Vimg10

06/06/2018 at 07:47PM

9
#32 - Kyle Partridge / @partkyle

06/06/2018 at 08:45PM

9
#33 - Dylan Nelson / @dlnnlsn

06/08/2018 at 02:37AM

9
#34 - Henrique Malheiro / @rike09

06/10/2018 at 10:16AM

9
#35 - z0c / @zerocabal

06/12/2018 at 10:41AM

9
#36 - Kris Ezra / @kris_ezra

06/12/2018 at 11:07PM

9
#37 - Chris Dean / @ChrisDe62379742

06/13/2018 at 12:05AM

9
#38 - Jonathan Ambrose / @jambrose78

06/13/2018 at 07:35PM

9
#39 - Arijus / @argshook

06/21/2018 at 12:09PM

9
#40 - h43z / @h43z

06/21/2018 at 05:40PM

9
#41 - Paul Jones / @thepauljones

06/25/2018 at 12:04PM

9
#42 - Artūras Zakrevskis / @AZakrevskis

06/28/2018 at 02:33PM

9
#43 - Gemille Ford / @gemilleford

07/03/2018 at 12:19AM

9
#44 - mass / @mass256

07/06/2018 at 07:47AM

9
#45 - sspan / @sspantz

07/10/2018 at 02:30AM

9
#46 - Benny / @_originalsouth_

07/12/2018 at 12:14PM

9
#47 - Eric Söderström / @eksoderstrom

07/12/2018 at 09:07PM

9
#48 - niwatoco / @yoshitune9

07/19/2018 at 06:50PM

9
#49 - Andrew Ouzts / @andrew_ouzts

07/22/2018 at 05:04AM

9
#50 - ハヤシ / @0__098

07/25/2018 at 02:00PM

9
#51 - qed / @qed13308565

07/25/2018 at 03:54PM

9
#52 - Pfhor / @PfhorShark

07/26/2018 at 08:02PM

9
#53 - yqu212 / @yqu212

07/27/2018 at 11:55AM

9
#54 - Andrew Peterson / @FungalRaincloud

07/30/2018 at 01:47AM

9
#55 - Francesco Sacchi / @depsir

07/31/2018 at 08:45PM

9
#56 - h3is3nd3rp / @h3is3nd3rp

08/05/2018 at 05:44PM

9
#57 - Андрей / @777Android777

08/05/2018 at 10:45PM

9
#58 - Lai Bai / @laibai321

08/16/2018 at 11:09AM

9
#59 - Hugo / @szeyattai

08/17/2018 at 08:03AM

9
#60 - d8d90d / @d8d90d

08/19/2018 at 05:12PM