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

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

  • Best score: 12
  • Best player score: 13
  • Position: #780 / 1628
  • Number of attempts: 3
Top X - 212 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: #12 / 71
  • Number of attempts: 2
Words in parens - 12942 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2543 / 3964
  • Number of attempts: 3
The name of the game - 668 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 15
  • Position: #349 / 361
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1606 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 / 446
  • Number of attempts: 5
Switch function arguments - 2140 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 16
  • Position: #595 / 664
  • Number of attempts: 2
Sort and add attributes - 1471 entries

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

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

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

  • Best score: 16
  • Best player score: 34
  • Position: #656 / 794
  • Number of attempts: 1
Simple text editing with Vim - 12880 entries

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

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

entered into 9 challenges

contributed 0 challenges