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 57a208ce38e7e83a43000003

Generate a list of numbers

Please generate list of numbers from 1 to 20.

Start file
1
End file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

View Diff

1c1
< 1
---
> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

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 133 remaining solutions by signing in and submitting your own entry
#134 Richard Laub / @RWLaub91 - Score: 53 - 08/07/16 @ 05:38
a 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20<Esc>ZZ

0 comments


#135 Jurica / @Jurica34581259 - Score: 53 - 11/20/18 @ 22:21
:let c=1<CR>qa:let c=c+1<CR>:execute 'put ='.c<CR>q18@a1G20JZZ

0 comments


Created by: @isaneba

135 active golfers, 282 entries

Leaderboard (lowest score wins):
15
#91 - Netrisk Cool / @C00lt0

09/30/2016 at 10:03AM

15
#92 - Axl Waii / @axlwaii

10/02/2016 at 02:26PM

15
#93 - TweetDreams / @TweetMusicians

10/08/2016 at 11:24PM

15
#94 - Kyouma / @kyoumaJohn

10/14/2016 at 03:01PM

15
#95 - Alan Turing / @alantrng

11/28/2016 at 11:27PM

15
#96 - Sven R / @Sven73de

01/06/2017 at 10:48AM

15
#97 - Eduardo Hashimoto / @eduhashi

02/16/2017 at 12:17AM

15
#98 - Raymond Chee / @rchomium

03/05/2017 at 05:53AM

15
#99 - Daniel / @Daniel00288663

03/30/2017 at 12:36PM

15
#100 - 20speedvegan / @ashkevinm

04/14/2017 at 04:46PM

15
#101 - Alex Linden / @alexwlinden1

04/25/2017 at 08:50PM

15
#102 - Sam Hammer / @samhammer325

05/06/2017 at 07:10PM

15
#103 - Scott Mills / @smm1729

06/21/2017 at 12:07AM

15
#104 - mkl / @Hnr1zklc

10/26/2017 at 09:52AM

15
#105 - Chris Dean / @ChrisDe62379742

06/12/2018 at 02:49PM

15
#106 - Mihai / @mihaicristiant

01/28/2019 at 12:33PM

15
#107 - Patrick Lavin / @LavinComputes

01/31/2019 at 02:01AM

15
#108 - albalitz / @_albalitz

06/17/2019 at 01:43PM

15
#109 - Nicolas Daval / @ndaval

05/01/2020 at 08:06PM

15
#110 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 04:56PM

15
#111 - Selvaganapathy P / @canabady

02/22/2021 at 12:14PM

16
#112 - roboguy / @roboguy

08/05/2016 at 07:06AM

16
#113 - Micha / @michman89

08/06/2016 at 03:32PM

16
#114 - ♜ Pepe Doval / @pepellou

08/08/2016 at 04:52PM

16
#115 - Clark DuVall / @theclarkatron

10/06/2016 at 01:55AM

16
#116 - jn / @j1357924

10/19/2016 at 07:17PM

16
#117 - Liam S Ismail / @AC01Y

04/05/2017 at 12:18AM

16
#118 - Sxcy / @SxcyX

11/06/2018 at 04:17PM

16
#119 - timonegk / @timonegk

11/25/2018 at 10:19PM

17
#120 - Marek Wawrzos / @putisPenser

08/08/2016 at 07:25AM