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

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 95 remaining solutions by signing in and submitting your own entry
#96 Bruce Park / @bpark0 - Score: 170 - 07/07/13 @ 03:13
1i1<CR><BS> 1<CR>1 2<CR>1 3<CR>1 4<CR>15<BS> 5<CR>2 1<CR>2 2<CR>2 3<CR>2 4<CR>25<BS> 5<CR>3 1<CR>2 <BS><BS>3 2<CR>3 3<CR>3 4<CR>3 5<CR>4 1<CR>4 2<CR>4 3<CR>4 4<CR>4 5<CR>5 1 <BS><CR>5 2<CR>53<BS> 3<CR>5 4 <BS><CR>5 5<C-Z><BS><C-X><Esc><Right><Left><Right>:quit<CR><C-X>5<Up><Down><Down><Down><Down><Down><Down><Esc><Up><Down>5<Up><Down><Down><Down><Down><Down>o5<BS><BS><BS>5<C-X><C-X>:wq<CR><BS><BS><BS><BS><Esc>:wq<CR>

0 comments


Created by: @kylewillmon

96 active golfers, 257 entries

Leaderboard (lowest score wins):
63
#91 - Dan F. / @danielrfh

11/10/2024 at 12:52AM

72
#92 - Francisco Dibar / @frandibar

01/11/2011 at 05:12AM

104
#93 - Jan Wedekind / @wedesoft

07/13/2012 at 07:16PM

128
#94 - not so punk :] / @notsopunk

06/19/2011 at 10:36AM

157
#95 - Ayman Farhat / @aymanfarhat

05/05/2013 at 03:33PM

170
#96 - Bruce Park / @bpark0

07/07/2013 at 03:13AM