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

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

  • Best score: 12
  • Best player score: 17
  • Position: #1239 / 1615
  • Number of attempts: 1
Reverse characters in a line - 750 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: 21
  • Position: #207 / 261
  • Number of attempts: 1
Reformat most common surnames - 691 entries

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

  • Best score: 23
  • Best player score: 34
  • Position: #134 / 205
  • Number of attempts: 1
Get rid of html tags - 383 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 19
  • Position: #133 / 224
  • Number of attempts: 1
Deleting folded text - 348 entries

The text below contains three folds. Delete them (and the text inside them). For example: 123 456 /*{{{*/ 789 /*}}}*/ 012 Should become: 123 012 Also, add `aoeuaoeu` to make sure small solutions don't get flagged as cheating.

  • Best score: 17
  • Best player score: 23
  • Position: #85 / 115
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3568 entries

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

  • Best score: 16
  • Best player score: 32
  • Position: #559 / 770
  • Number of attempts: 1
Christopher Suter
Twitter:

entered into 6 challenges

contributed 0 challenges