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

replacing each line of a block selection - 2682 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 33
  • Number of attempts: 1
The name of the game - 594 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Shebangs for all - 1648 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: 37
  • Number of attempts: 1
Coordinates placeholder - 52 entries

Place coordinates instead of target search.

  • Best score: 22
  • Best player score: 26
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 5660 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 59
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10067 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 20
  • Number of attempts: 5
Simple text editing with Vim - 10989 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 24
  • Number of attempts: 2
Exchanging Quotes - 776 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 45
  • Number of attempts: 1
Delete unwanted lines - 347 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 1
quotes inside quotes - 2942 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 1
Vertical Limit - 2229 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 27
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 338 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: 11
  • Number of attempts: 3
Words in parens - 11973 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 3
Let's play some Ivmgolf - 968 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 12
  • Number of attempts: 2
Extract argument from function - 2123 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 1
Search and Replace 0 - 4434 entries

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

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
TimWolla
Twitter:

entered into 16 challenges

contributed 0 challenges