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

Extract argument from function - 2186 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #615 / 721
  • Number of attempts: 1
Search and Replace 0 - 4534 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #1178 / 1507
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10507 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 20
  • Position: #3473 / 3626
  • Number of attempts: 5
quotes inside quotes - 2996 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: 3
  • Best player score: 22
  • Position: #987 / 1037
  • Number of attempts: 1
Words in parens - 12678 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3352 / 3904
  • Number of attempts: 3
Delete unwanted lines - 350 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #121 / 210
  • Number of attempts: 1
Coordinates placeholder - 56 entries

Place coordinates instead of target search.

  • Best score: 22
  • Best player score: 26
  • Position: #28 / 34
  • Number of attempts: 3
The Quick Brown Fox Jumps Over The Lazy Vim - 356 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
  • Position: #125 / 173
  • Number of attempts: 3
The name of the game - 597 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #171 / 328
  • Number of attempts: 3
Let's play some Ivmgolf - 979 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 12
  • Position: #363 / 407
  • Number of attempts: 2
Vertical Limit - 2300 entries

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

  • Best score: 21
  • Best player score: 27
  • Position: #496 / 701
  • Number of attempts: 1
Exchanging Quotes - 781 entries

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

  • Best score: 30
  • Best player score: 45
  • Position: #197 / 216
  • Number of attempts: 1
replacing each line of a block selection - 2740 entries

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

  • Best score: 18
  • Best player score: 33
  • Position: #665 / 724
  • Number of attempts: 1
Shebangs for all - 1719 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
  • Position: #455 / 458
  • Number of attempts: 1
Simple text editing with Vim - 11365 entries

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

  • Best score: 13
  • Best player score: 24
  • Position: #2804 / 3337
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5804 entries

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

  • Best score: 32
  • Best player score: 59
  • Position: #1346 / 1438
  • Number of attempts: 2
TimWolla
Twitter:

entered into 16 challenges

contributed 0 challenges