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):
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

24
#6 - Turkey Man / @lvturkeyman

08/20/2018 at 08:20AM

24
#7 - Miłosz Łakomy / @foobar01123

08/29/2020 at 11:45AM

24
#8 - Qing Liu / @poeminlash

08/02/2022 at 04:45AM

24
#9 - Peppa Pig / @PeppaPigSg

08/06/2024 at 12:42AM

25
#10 - wpr__ / @wpr____

03/10/2022 at 01:31AM

25
#11 - nickGPT / @nickandbro

08/28/2024 at 11:25PM

26
#12 - derp derp / @derp__

01/04/2011 at 09:36AM

26
#13 - Wei Dai / @clvv42

01/05/2011 at 12:45AM

26
#14 - rabidpraxis / @rabidpraxis

01/05/2011 at 08:17AM

26
#15 - Ujjwol Lamichhane / @Ujjwol

01/07/2011 at 10:45AM

26
#16 - Steve Morrow / @yawmark

01/27/2011 at 03:00AM

26
#17 - vg / @vimgolfer

03/02/2011 at 10:39AM

26
#18 - Emile Swarts / @EmileSwarts

06/18/2011 at 04:02PM

26
#19 - Dave / @zzdave13

07/25/2011 at 02:39PM

26
#20 - Junfeng / @junfeng

07/27/2011 at 12:19PM

26
#21 - David / @dpa_92

08/03/2011 at 08:24AM

26
#22 - You-Siang Lin / @yslinnctu

12/04/2011 at 03:21AM

26
#23 - Federico Galassi / @federicogalassi

07/28/2012 at 09:29AM

26
#24 - Victor Ramirez / @virako

10/17/2012 at 07:31AM

26
#25 - Conner McDaniel / @connermcd

11/29/2012 at 05:43PM

26
#26 - Jon Krause / @jkrause314

01/24/2016 at 12:33AM

26
#27 - Rich Cheng / @sedm0784

09/13/2018 at 04:00PM

27
#28 - Matthew Draper / @_matthewd

01/04/2011 at 09:29AM

28
#29 - Tim Chase / @gumnos

01/04/2011 at 06:56PM

30
#30 - Benoît Ryder / @benoitryder

01/04/2011 at 08:05PM