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 [challenge ID]

Played Challenges

Search and Replace 0 - 4583 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #192 / 1518
  • Number of attempts: 3
Word frequency alignment - 233 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #9 / 142
  • Number of attempts: 1
Minimalist Limerick - 500 entries

Reproduce this lovely poem.

  • Best score: 31
  • Best player score: 31
  • Position: #4 / 165
  • Number of attempts: 2
abcd > a b c d - 251 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #64 / 198
  • Number of attempts: 1
Readable Rubyhash - 233 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 23
  • Best player score: 29
  • Position: #57 / 85
  • Number of attempts: 2
Dehamlizing - 170 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 40
  • Position: #30 / 65
  • Number of attempts: 4
The Quick Brown Fox Jumps Over The Lazy Vim - 373 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 10
  • Best player score: 10
  • Position: #39 / 175
  • Number of attempts: 1
lamb had a little Mary - 538 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 34
  • Position: #64 / 153
  • Number of attempts: 3
SFD-ROC: vimvimvim - 1460 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 10
  • Position: #242 / 414
  • Number of attempts: 3
Saving the hashes(#) - 1937 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 25
  • Position: #132 / 462
  • Number of attempts: 4
Let's play some Ivmgolf - 985 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #157 / 409
  • Number of attempts: 1
Switch function arguments - 1946 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #215 / 618
  • Number of attempts: 2
Shebangs for all - 1749 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 16
  • Position: #283 / 462
  • Number of attempts: 2
Panupan S.
Twitter:

entered into 13 challenges

contributed 0 challenges