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):
30
#31 - Jean George / @JeanGeo20504212

11/12/2021 at 11:21PM

31
#32 - Paul King / @nrocy

01/11/2011 at 06:11AM

31
#33 - Carlos López / @morrizon

04/02/2014 at 02:19AM

31
#34 - Janzen / @__Coos

09/23/2022 at 09:08AM

32
#35 - Clément Nodet / @clementnodet

01/04/2011 at 11:56AM

32
#36 - Soliman Sylvain / @sylvain_soliman

01/04/2011 at 07:46PM

32
#37 - Marc Lacoursière / @RooSoft

01/04/2011 at 09:19PM

32
#38 - Ashish Narasimham / @asheeshkabob

01/05/2011 at 02:40AM

32
#39 - Rob Ciaccio / @RobertoCalavera

01/27/2011 at 12:46AM

32
#40 - (#^ω^)ラムラム / @ramusara

02/15/2011 at 03:35PM

32
#41 - paulfariello ✏️ / @paulfariello

03/08/2011 at 12:58PM

32
#42 - Justin Love / @wondible

08/15/2011 at 02:49PM

32
#43 - Vitor Eiji / @vitoreiji0

10/23/2011 at 02:35AM

32
#44 - William Dunand / @wdunand

11/18/2011 at 02:52AM

32
#45 - Ibrahim Tencer / @ibrahimtencer

02/12/2012 at 08:52PM

32
#46 - Kerson Hsiao / @KersonHsiao

07/07/2012 at 05:25AM

32
#47 - vansan / @VinceVansan

08/28/2012 at 10:11AM

32
#48 - zlydem / @zlydem

07/02/2013 at 03:33PM

32
#49 - Milind Ganjoo / @mganjoo

03/04/2014 at 03:17AM

32
#50 - Juan Luis / @rufianw

07/03/2014 at 12:36PM

33
#51 - aaaa3331 / @aaaa3331

01/04/2011 at 05:19PM

33
#52 - Josh Weinberg / @jcweinberg

01/05/2011 at 06:02AM

33
#53 - Adam Pohorecki / @apohorecki

08/08/2011 at 01:09PM

34
#54 - Mattiassich Ákos / @mattiassicha

01/04/2011 at 07:55AM

34
#55 - pcl / @_pcl

01/04/2011 at 07:53PM

34
#56 - Guillaume Bonnoron / @gbonnoron

01/04/2011 at 09:14PM

34
#57 - Pavlo Klets / @p01nt

02/06/2011 at 06:24PM

35
#58 - Thom Hughes / @thom_hughes_1

03/28/2011 at 08:40AM

35
#59 - Nolen Royalty / @NolenRoyalty

04/21/2012 at 12:04AM

35
#60 - RobertT / @techrt2050

06/09/2014 at 03:30AM