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

69 active golfers, 158 entries

Leaderboard (lowest score wins):
32
#61 - Dave / @zzdave13

07/25/2011 at 02:59PM

32
#62 - moriancumer / @moriancumer

04/20/2017 at 04:01PM

33
#63 - mightyfoo / @mightyfoo

05/26/2011 at 12:13AM

33
#64 - Ryan / @devops_yeoman

09/11/2012 at 05:07PM

34
#65 - kmymtksh / @kmymtksh

01/02/2011 at 12:10PM

34
#66 - Josh Weinberg / @jcweinberg

01/02/2011 at 05:35PM

35
#67 - Fer Enaf / @0x00C0FFEE

01/02/2011 at 11:38AM

44
#68 - Remy_D / @Remy_D

09/11/2012 at 05:16PM

53
#69 - Solomon White / @rubysolo

01/03/2011 at 12:26AM