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 - 4792 entries

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

  • Best score: 12
  • Best player score: 20
  • Position: #1419 / 1585
  • Number of attempts: 3
Define to require - 118 entries

When JSHint is enabled, there's a rule that doesn't let you have more than 6 arguments in a function, so the moment you need to add a 7th argument, you need to do a refactoring.

  • Best score: 62
  • Best player score: 291
  • Position: #48 / 48
  • Number of attempts: 1
A simple change - 442 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 14
  • Position: #84 / 189
  • Number of attempts: 4
switch variable - 5036 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1067 / 1736
  • Number of attempts: 2
Reverse characters in a line - 711 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 33
  • Position: #236 / 250
  • Number of attempts: 2
Reformat most common surnames - 647 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 88
  • Position: #193 / 198
  • Number of attempts: 1
Sort and add attributes - 1332 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 37
  • Position: #413 / 531
  • Number of attempts: 2
Reconstruct the Sentence - 1377 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 28
  • Position: #351 / 386
  • Number of attempts: 3
Simple text editing with Vim - 12290 entries

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

  • Best score: 13
  • Best player score: 26
  • Position: #3068 / 3581
  • Number of attempts: 6
jonlorusso
Twitter:

entered into 9 challenges

contributed 0 challenges