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

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

  • Best score: 12
  • Best player score: 13
  • Position: #725 / 1541
  • Number of attempts: 3
Top X - 189 entries

The End File is the Top 10 Vimgolf Leaderboard at June 29, 2013. This is a second version, with a great contribution of @udioica. X is ten in Roman,a numeric system in ancient Rome

  • Best score: 18
  • Best player score: 21
  • Position: #10 / 68
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2508 / 3919
  • Number of attempts: 3
The name of the game - 627 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 15
  • Position: #333 / 343
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1508 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #24 / 424
  • Number of attempts: 5
Switch function arguments - 1982 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 16
  • Position: #565 / 627
  • Number of attempts: 2
Sort and add attributes - 1183 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #156 / 482
  • Number of attempts: 3
Whitespace, empty lines and tabs - 2970 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 34
  • Position: #557 / 661
  • Number of attempts: 1
Simple text editing with Vim - 11620 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1015 / 3409
  • Number of attempts: 6
Alexey
Twitter:

entered into 9 challenges

contributed 0 challenges