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):
35
#31 - david hu / @chin33z

12/17/2014 at 10:16AM

36
#32 - squdle / @squdle

06/17/2017 at 09:42AM

37
#33 - ぷりケツにるぽ / @nillpo

12/22/2014 at 12:20AM

38
#34 - Oliver Christ / @0liverChrist

02/08/2015 at 10:30PM

38
#35 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 02:52PM

39
#36 - Chanaka Sandaruwan / @ch4n4k4

12/24/2014 at 07:02AM

39
#37 - Hugues de Lassus / @HuguesdeLassus

04/17/2015 at 11:44AM

39
#38 - mindgitrwx / @mindgitrwx

08/06/2020 at 10:34AM

39
#39 - z00master / @z00master

08/26/2022 at 10:07PM

39
#40 - jasonlee / @jasonle61136657

03/30/2023 at 11:34AM

40
#41 - Josu Oyanguren / @josuoyanguren

12/17/2014 at 03:58PM

59
#42 - luffy / @raxcoi

12/17/2014 at 09:02AM