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 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 73 remaining solutions by signing in and submitting your own entry
#74 Solomon White / @rubysolo - Score: 53 - 01/03/11 @ 00:26
:%s/0/./g<CR>:%s!\^!.!g<CR>jls.<Esc>l.2Gls@<Esc>lls><Esc>jjlll2s00<Esc>:wq<CR>

0 comments


Created by: @0x00C0FFEE

74 active golfers, 177 entries

Leaderboard (lowest score wins):
32
#61 - Paul King / @nrocy

01/10/2011 at 09:38AM

32
#62 - drio / @drio

01/16/2011 at 04:22PM

32
#63 - Nomen Nescio / @vadtusan

04/14/2011 at 10:15PM

32
#64 - Dave / @zzdave13

07/25/2011 at 02:59PM

32
#65 - moriancumer / @moriancumer

04/20/2017 at 04:01PM

33
#66 - mightyfoo / @mightyfoo

05/26/2011 at 12:13AM

33
#67 - Ryan / @devops_yeoman

09/11/2012 at 05:07PM

33
#68 - shahanavaz m / @shahanavazm

02/15/2022 at 05:06PM

33
#69 - wihinenh / @wihinenh

04/11/2024 at 12:31PM

34
#70 - kmymtksh / @kmymtksh

01/02/2011 at 12:10PM

34
#71 - Josh Weinberg / @jcweinberg

01/02/2011 at 05:35PM

35
#72 - Fer Enaf / @0x00C0FFEE

01/02/2011 at 11:38AM

44
#73 - Remy_D / @Remy_D

09/11/2012 at 05:16PM

53
#74 - Solomon White / @rubysolo

01/03/2011 at 12:26AM