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

Wrap the text of an email message to 79 characters - 597 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #169 / 358
  • Number of attempts: 3
Search and Replace 0 - 4681 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #892 / 1550
  • Number of attempts: 2
Interweave two blocks of text - 584 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 20
  • Position: #167 / 205
  • Number of attempts: 1
Let's play some Ivmgolf - 1015 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #166 / 420
  • Number of attempts: 4
switch variable - 4945 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 15
  • Position: #1448 / 1708
  • Number of attempts: 1
The holy-grail may help - 322 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #119 / 196
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3009 entries

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

  • Best score: 16
  • Best player score: 23
  • Position: #280 / 667
  • Number of attempts: 5
Flodder-challenge - 927 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 40
  • Position: #202 / 273
  • Number of attempts: 2
Simple text editing with Vim - 11657 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #2659 / 3418
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6033 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 39
  • Position: #652 / 1486
  • Number of attempts: 1
n2o4
Twitter:

entered into 10 challenges

contributed 0 challenges