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

31 active golfers, 67 entries

Leaderboard (lowest score wins):
59
#31 - luffy / @raxcoi

12/17/2014 at 09:02AM