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 50b746da523acc0002000018

Checkerboard case pattern

All the squares are white. Make some of them black. But only the right ones.

Start file
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
End file
aAaAaAaA
AaAaAaAa
aAaAaAaA
AaAaAaAa
aAaAaAaA
AaAaAaAa
aAaAaAaA
AaAaAaAa

View Diff

1,8c1,8
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
---
> aAaAaAaA
> AaAaAaAa
> aAaAaAaA
> AaAaAaAa
> aAaAaAaA
> AaAaAaAa
> aAaAaAaA
> AaAaAaAa

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 60 remaining solutions by signing in and submitting your own entry
#61 Chris Maguire / @chriswmaguire - Score: 51 - 11/29/12 @ 16:34
:%s/\r<BS>n/a/g<CR>:s/aa/aA/g<CR>:s/\(\w\{8\}\)\w/\1\r/g<CR>xZZ

0 comments


Created by: @udioica

61 active golfers, 164 entries

Leaderboard (lowest score wins):
51
#61 - Chris Maguire / @chriswmaguire

11/29/2012 at 04:34PM