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

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

  • Best score: 12
  • Best player score: 12
  • Position: #170 / 1627
  • Number of attempts: 4
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1072 / 1749
  • Number of attempts: 4
remove dupes from array - 1358 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 29
  • Position: #299 / 336
  • Number of attempts: 2
The Cake is a Lie - 1349 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #128 / 528
  • Number of attempts: 5
Get rid of html tags - 405 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #76 / 234
  • Number of attempts: 1
Sort and add attributes - 1467 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #118 / 570
  • 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: 22
  • Position: #298 / 794
  • Number of attempts: 5
robin hafen
Twitter:

MSc Bioinformatics ETH

entered into 7 challenges

contributed 0 challenges