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

Exchanging Quotes - 761 entries

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

  • Best score: 30
  • Best player score: 45
  • Number of attempts: 1
Shebangs for all - 1624 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
Vertical Limit - 2153 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
Let's play some Ivmgolf - 927 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 12
  • Number of attempts: 2
The Quick Brown Fox Jumps Over The Lazy Vim - 330 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
Delete unwanted lines - 336 entries

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

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 1
The name of the game - 587 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Search and Replace 0 - 4191 entries

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

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Extract argument from function - 2040 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
Reformat/Refactor a Golfer Class - 5551 entries

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

  • Best score: 32
  • Best player score: 59
  • Number of attempts: 2
Coordinates placeholder - 52 entries

Place coordinates instead of target search.

  • Best score: 22
  • Best player score: 26
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 9670 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 20
  • Number of attempts: 5
Words in parens - 11284 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 3
Simple text editing with Vim - 10610 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
replacing each line of a block selection - 2572 entries

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

  • Best score: 18
  • Best player score: 33
  • Number of attempts: 1
quotes inside quotes - 2826 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
TimWolla
Twitter:

entered into 16 challenges

contributed 0 challenges