Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Leaderboard, Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d2061daf1a3f252f4000087

Solve the Sokoban

A wink for all Vimgolfers that play Nethack too.

Start file
-------- ------
|<|@...---....|
|^|-.00....0..|
|^||..00|.0.0.|
|^||....|.....|
|^|------0----|
|^|    |......|
|^------......|
|..^^^^0000...|
|??-----......|
----   --------
End file
-------- ------
|@|>...---....|
|.|-..........|
|.||..00|.....|
|.||....|.....|
|.|------.----|
|.|    |......|
|.------......|
|.............|
|..-----......|
----   --------

View Diff

2,10c2,10
< |<|@...---....|
< |^|-.00....0..|
< |^||..00|.0.0.|
< |^||....|.....|
< |^|------0----|
< |^|    |......|
< |^------......|
< |..^^^^0000...|
< |??-----......|
---
> |@|>...---....|
> |.|-..........|
> |.||..00|.....|
> |.||....|.....|
> |.|------.----|
> |.|    |......|
> |.------......|
> |.............|
> |..-----......|

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 49 remaining solutions by signing in and submitting your own entry
#50 Nándor Komzák / @rubymood - Score: 32 - 01/02/11 @ 16:09
:%s/[?^0]/./g<CR>2Glr@llr>4G6l2r0ZZ

0 comments

#51 Paul Tarjan / @ptarjan - Score: 32 - 01/08/11 @ 12:10
:%s/[0^?]/./g<CR>2Glr@llr>4G6l2r0ZZ

0 comments

#52 Paul King / @nrocy - Score: 32 - 01/10/11 @ 01:38
:%s/[0^?]/./g<CR>?<<CR>r@2lr>3l2j2r0ZZ

0 comments

#53 drio / @drio - Score: 32 - 01/16/11 @ 08:22
:%s/[0^?]/./g<CR>2Glr@2lr>4G6l2r0ZZ

0 comments

#54 Nomen Nescio / @vadtusan - Score: 32 - 04/14/11 @ 15:15
:%s/[0^?]/./g<CR>/<<CR>r@2lr>2j3l2r0ZZ

0 comments

#55 Dave / @zzdave13 - Score: 32 - 07/25/11 @ 07:59
jlR@|><Esc>:%s/[0^?]/./g<NL>4G4f.R00<Esc>ZZ

0 comments

#56 mightyfoo / @mightyfoo - Score: 33 - 05/25/11 @ 17:13
:%s/[^-|. ]/./g<CR>2GR|@|><C-O>2j..00<Esc>ZZ

0 comments

#57 Ryan / @devops_yeoman - Score: 33 - 09/11/12 @ 10:07
jlr@llr>:%s/[0?^]/./g<CR>:4<CR>6l2r0:x<CR>

0 comments

#58 kmymtksh / @kmymtksh - Score: 34 - 01/02/11 @ 04:10
:%s/[0^?]/./g<CR>2Glr@2lr>2j3lr0lr0ZZ

0 comments

#59 Josh Weinberg / @jcweinberg - Score: 34 - 01/02/11 @ 09:35
:%s/[0^?]/./g<CR>2Glr@2lr>2j3lr0lr0ZZ

0 comments

#60 Fer Enaf / @0x00C0FFEE - Score: 35 - 01/02/11 @ 03:38
:%s/[0^?]/./g<CR>6k6lvlc00<Esc>?@<CR>r>2hr@ZZ

0 comments

#61 Remy_D / @Remy_D - Score: 44 - 09/11/12 @ 10:16
:%s/[?0^]/./g<CR>/<<CR>r@wblllr>lljljr0lr0:wq<BS><BS><BS>ZZ

0 comments

#62 Solomon White / @rubysolo - Score: 53 - 01/02/11 @ 16:26
:%s/0/./g<CR>:%s!\^!.!g<CR>jls.<Esc>l.2Gls@<Esc>lls><Esc>jjlll2s00<Esc>:wq<CR>

0 comments

Created by: @0x00C0FFEE

62 active golfers, 132 entries

Leaderboard (lowest score wins):
Fepic_normal
25
#1 - Federico Galassi / @federicogalassi

10/02/2011 at 05:53AM

40051_789281885907_29616532_44170636_2091417_n_normal
25
#2 - Conner McDaniel / @connermcd

11/29/2012 at 09:24AM

Desktophintergrund03_normal
25
#3 - Zapata / @Incredible_JFP

03/21/2014 at 11:16AM

Q6hrg93p4r3hn56thmd0_normal
26
#4 - Urtica dioica / @udioica

12/12/2012 at 03:13AM

Default_profile_1_normal
27
#5 - tmr / @tmr314

09/10/2012 at 07:29AM

Bunnies_normal
27
#6 - Trevor Powell / @DoomedBunnies

03/19/2013 at 09:54PM

4654945923_eb2c60ee5f_normal
29
#7 - Kerson Hsiao / @KersonHsiao

07/24/2012 at 08:05AM

Dom-50_normal
30
#8 - dominique pellé / @vimgolfisto

01/02/2011 at 07:54AM

Adept_normal
30
#9 - Balkoth / @_Balkoth_

01/02/2011 at 08:01AM

Ca61e4e5-4da1-4966-8687-97967e92ff76_normal
30
#10 - Ben Lenarts / @benlenarts

01/02/2011 at 01:56PM

Vcwwccib_normal
30
#11 - Pete Johns / @johnsyweb

01/02/2011 at 03:44PM

Me-small_normal
30
#12 - Wei Dai / @clvv42

01/02/2011 at 04:24PM

Default_profile_6_normal
30
#13 - derp derp / @derp__

01/06/2011 at 02:31AM

The-milky-way-mardi-khola-007_normal
30
#14 - Ujjwol Lamichhane / @Ujjwol

01/07/2011 at 02:37AM

2010-10-27-101851-cropped_normal
30
#15 - nicholas a. evans / @nick_evans

01/07/2011 at 11:27AM

Default_profile_6_normal
30
#16 - Francisco Dibar / @frandibar

01/12/2011 at 05:45AM

4_normal
30
#17 - Oleg Roshupkin / @jjjahson

01/19/2011 at 02:24AM

Gravatar_normal
30
#18 - Stephen Morrow / @yawmark

01/31/2011 at 09:17AM

6948ecc2a8eec5fede87bb12229b32d0_normal
30
#19 - Brendan Taylor / @beect

04/26/2011 at 03:20PM

Ja_u_central_parku-mala_normal
30
#20 - Dragan Cvetinovic / @kawkafi

05/22/2011 at 08:14AM

Default_profile_2_normal
30
#21 - Jam / @jam00_bcn

06/18/2011 at 08:24AM

Avatar-small_normal
30
#22 - Hu Junfeng / @hujunfeng

07/26/2011 at 02:59AM

Jlove201003sq_normal
30
#23 - Justin Love / @wondible

08/13/2011 at 03:59PM

Default_profile_6_normal
30
#24 - William Dunand / @wdunand

11/20/2011 at 06:16PM

Gintoki_normal
30
#25 - You-Siang Lin / @yslinnctu

12/03/2011 at 04:29AM

Default_profile_2_normal
30
#26 - Renat Aksitov / @Korvin79

02/21/2012 at 07:20PM

1sy_gzdz_normal
30
#27 - Kai Yuan / @kentyuan

05/22/2013 at 03:19PM

Netti_pihlajo1_lthumb_normal
30
#28 - Joonas Pihlajamaa / @jokkebk

03/15/2014 at 04:28AM

2010-05-13t17-56-23__1__normal
31
#29 - Marian Schubert / @MarianSchubert

01/02/2011 at 06:36AM

Blue-sky2_normal
31
#30 - Kyle Willmon / @kylewillmon

01/02/2011 at 09:53PM

Green_normal
31
#31 - Chris / @diracdelta

01/03/2011 at 10:03AM

Default_profile_2_normal
31
#32 - David Pflug / @dpflug

01/09/2011 at 03:57PM

Default_profile_2_normal
31
#33 - Thomas Schönwälder / @Masei1988

01/12/2011 at 11:16AM

Eek_normal
31
#34 - Clive Evans / @swish_bob

01/17/2011 at 03:10PM

P1000007_normal
31
#35 - h_east (DDD ready) / @h_east

02/02/2011 at 07:35AM

Cv_normal
31
#36 - Ben Sinclair / @muppling

03/12/2011 at 05:21PM

Gravatar_normal
31
#37 - Jesús Espino / @jespinog

09/06/2011 at 05:26PM

Default_profile_5_normal
31
#38 - Tara Bass / @tara_bass

12/23/2011 at 08:31AM

Avatar_normal
31
#39 - Xavier Nayrac / @lkdjiin

01/02/2012 at 02:16AM

Bc879469f279ee24b7fbdfad7c2216d9_normal
31
#40 - 無ん垢の叫び / @john_ababa

02/24/2012 at 12:24AM

Arcadia_avatar_normal
31
#41 - James / @Dronak

09/05/2013 at 01:59PM

E55df1cc7d5fdb4ae9bc2afcb9afe7e4_normal
32
#42 - Matthew Draper / @_matthewd

01/02/2011 at 04:47AM

Untitled_2_normal
32
#43 -  Ikhsan Maulana / @ixandidu

01/02/2011 at 04:54AM

Ewbdmdtg_normal
32
#44 - Tim Chase / @gumnos

01/02/2011 at 05:03AM

Default_profile_4_normal
32
#45 - Aurélien Delahaye / @alkove

01/02/2011 at 05:37AM

Blatiere_gmail.com_9ef4af5d_normal
32
#46 - Mickael / @mickaelb

01/02/2011 at 05:54AM

6240_139454607906_723872906_3271730_5845230_n_normal
32
#47 - Alain Gilbert / @alain_gilbert

01/02/2011 at 09:12AM

Rti70_normal
32
#48 - Peter Anselmo / @peter_anselmo

01/02/2011 at 10:35AM

N1353060027_30013425_5720_normal
32
#49 - Jordan Lewis / @JordanALewis

01/02/2011 at 12:42PM

Ruby_normal
32
#50 - Nándor Komzák / @rubymood

01/02/2011 at 04:09PM

Profile-light_normal
32
#51 - Paul Tarjan / @ptarjan

01/08/2011 at 12:10PM

Depthmap_normal
32
#52 - Paul King / @nrocy

01/10/2011 at 01:38AM

29ed1f20888463b3b72bd9fed88a79b8_normal
32
#53 - drio / @drio

01/16/2011 at 08:22AM

Default_profile_5_normal
32
#54 - Nomen Nescio / @vadtusan

04/14/2011 at 03:15PM

Uwe_horns_by_joao_normal
32
#55 - Dave / @zzdave13

07/25/2011 at 07:59AM

Foo-berk_normal
33
#56 - mightyfoo / @mightyfoo

05/25/2011 at 05:13PM

8jw8rf36zi203qjp65nq_normal
33
#57 - Ryan / @devops_yeoman

09/11/2012 at 10:07AM

Image_normal
34
#58 - kmymtksh / @kmymtksh

01/02/2011 at 04:10AM

Image_normal
34
#59 - Josh Weinberg / @jcweinberg

01/02/2011 at 09:35AM

Daruma_normal
35
#60 - Fer Enaf / @0x00C0FFEE

01/02/2011 at 03:38AM

Remysenateheadshotcrop_normal
44
#61 - Remy_D / @Remy_D

09/11/2012 at 10:16AM

Image_normal
53
#62 - Solomon White / @rubysolo

01/02/2011 at 04:26PM