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 5490a40f6571cc0002bc6920

Square numbers

Boring math puzzle.

Start file
0
End file
0
1
4
9
16
25
36
49
64
81
100

View Diff

1a2,11
> 1
> 4
> 9
> 16
> 25
> 36
> 49
> 64
> 81
> 100

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 41 remaining solutions by signing in and submitting your own entry
#42 luffy / @raxcoi - Score: 59 - 12/17/14 @ 09:02
:let a=0|for i in range(0,9)|let a=<BS>+=1+2*i|put=a|endfor<CR>ZZ

0 comments


Created by: @udioica

42 active golfers, 123 entries

Leaderboard (lowest score wins):
16
#1 - Kerson Hsiao / @KersonHsiao

06/16/2016 at 03:16AM

16
#2 - John Braxler / @braxler

12/04/2017 at 01:38PM

16
#3 - vimgolfer / @vimgolfer7

10/18/2019 at 12:14AM

16
#4 - Peppa Pig / @PeppaPigSg

07/31/2024 at 12:16AM

16
#5 - nickGPT / @nickandbro

08/28/2024 at 04:48AM

17
#6 - Jon Krause / @jkrause314

03/04/2016 at 11:51PM

18
#7 - Urtica dioica / @udioica

01/21/2016 at 11:59PM

18
#8 - roudens / @roudens2

02/12/2021 at 01:07AM

18
#9 - Alex / @AlexanderHeatl2

07/05/2022 at 10:48PM

21
#10 - Hans Liu / @zhansliu

12/16/2014 at 11:23PM

21
#11 - Matt / @mcr05

12/28/2014 at 09:43PM

25
#12 - Bellator nobilis / @BNobilis

12/16/2014 at 10:52PM

25
#13 - Caek / @Caek_

12/16/2014 at 11:07PM

25
#14 - Kai Yuan / @kentyuan

12/16/2014 at 11:11PM

25
#15 - mnx / @mnxx

12/17/2014 at 09:44AM

25
#16 - farseer / @FarseerSee2012

12/17/2014 at 11:42AM

25
#17 - Joseph J. Piché / @jjpiche

04/13/2016 at 04:37AM

25
#18 - Miłosz Łakomy / @foobar01123

06/02/2016 at 03:50PM

25
#19 - Jorge / @jherreso

07/27/2017 at 07:32AM

25
#20 - zapakh / @zapakh

01/21/2021 at 06:50AM

25
#21 - Selvaganapathy P / @canabady

02/20/2021 at 02:43PM

25
#22 - Divvy C. / @divvy_c

08/12/2023 at 04:29PM

26
#23 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

01/11/2015 at 04:10AM

27
#24 - Gwilym Kuiper / @gwilymk

12/16/2014 at 10:41PM

30
#25 - Bambu / @bambumandinga

12/25/2014 at 08:51AM

30
#26 - James / @Dronak

11/07/2022 at 08:33PM

31
#27 - Quark / @PuzzleQuark

08/07/2015 at 06:50PM

31
#28 - Berkay Berabi / @BerkayBerabi

03/04/2023 at 06:23PM

32
#29 - chrisheithoff / @chrisheithoff

03/28/2015 at 01:33AM

34
#30 - pftb12345 / @pftb12345

05/26/2015 at 11:02AM