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 4d22bb117f75b01e070000fb

Cartesian product

{1,2,3,4,5} X {1,2,3,4,5}

Start file


End file
1 1
1 2
1 3
1 4
1 5
2 1
2 2
2 3
2 4
2 5
3 1
3 2
3 3
3 4
3 5
4 1
4 2
4 3
4 4
4 5
5 1
5 2
5 3
5 4
5 5

View Diff

1c1,25
< 
---
> 1 1
> 1 2
> 1 3
> 1 4
> 1 5
> 2 1
> 2 2
> 2 3
> 2 4
> 2 5
> 3 1
> 3 2
> 3 3
> 3 4
> 3 5
> 4 1
> 4 2
> 4 3
> 4 4
> 4 5
> 5 1
> 5 2
> 5 3
> 5 4
> 5 5

Solutions by @nrocy:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @kylewillmon

95 active golfers, 255 entries

Solutions by @nrocy:
31
#32 - Paul King / @nrocy

01/11/2011 at 06:11AM