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

82 active golfers, 186 entries

Leaderboard (lowest score wins):
24
#1 - Urtica dioica / @udioica

10/07/2013 at 08:17PM

24
#2 - John Braxler / @braxler

08/19/2014 at 05:57PM

24
#3 - Petro Тrouq / @zulolosi

01/03/2015 at 12:58PM

24
#4 - Evgeny`s Kindle / @EvgenyKindle

05/11/2018 at 08:11AM

24
#5 - Daniël De Koker / @daniel_koker

07/07/2018 at 11:35AM

26
#6 - derp derp / @derp__

01/04/2011 at 09:36AM

26
#7 - Wei Dai / @clvv42

01/05/2011 at 12:45AM

26
#8 - rabidpraxis / @rabidpraxis

01/05/2011 at 08:17AM

26
#9 - Ujjwol Lamichhane / @Ujjwol

01/07/2011 at 10:45AM

26
#10 - Stephen Morrow / @yawmark

01/27/2011 at 03:00AM

26
#11 - vg / @vimgolfer

03/02/2011 at 10:39AM

26
#12 - (Emile (Swarts)) / @EmileSwarts

06/18/2011 at 04:02PM

26
#13 - Dave / @zzdave13

07/25/2011 at 02:39PM

26
#14 - Hu Junfeng / @junfeng

07/27/2011 at 12:19PM

26
#15 - David / @dpa_92

08/03/2011 at 08:24AM

26
#16 - You-Siang Lin / @yslinnctu

12/04/2011 at 03:21AM

26
#17 - Federico Galassi / @federicogalassi

07/28/2012 at 09:29AM

26
#18 - Victor Ramirez / @virako

10/17/2012 at 07:31AM

26
#19 - Conner McDaniel / @connermcd

11/29/2012 at 05:43PM

26
#20 - Jon Krause / @jkrause314

01/24/2016 at 12:33AM

26
#21 - Foo Bar / @foobar01123

06/07/2016 at 04:05PM

27
#22 - Matthew Draper / @_matthewd

01/04/2011 at 09:29AM

28
#23 - Tim Chase / @gumnos

01/04/2011 at 06:56PM

30
#24 - Benoît Ryder / @benoitryder

01/04/2011 at 08:05PM

31
#25 - Paul King / @nrocy

01/11/2011 at 06:11AM

31
#26 - Carlos López / @morrizon

04/02/2014 at 02:19AM

32
#27 - Clément Nodet / @clementnodet

01/04/2011 at 11:56AM

32
#28 - Soliman Sylvain / @sylvain_soliman

01/04/2011 at 07:46PM

32
#29 - Marc Lacoursière / @RooSoft

01/04/2011 at 09:19PM

32
#30 - Ashish Narasimham / @asheeshkabob

01/05/2011 at 02:40AM