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

Column wise pasting - 172 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 24
  • Position: #14 / 37
  • Number of attempts: 3
Deleting text - 254 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #21 / 81
  • Number of attempts: 1
Case matching substitution - 55 entries

Swap every "lorem" for "ipsum", keeping the letter cases the same.

  • Best score: 31
  • Best player score: 50
  • Position: #12 / 15
  • Number of attempts: 3
Reverse even lines - 33 entries

Reverse only the even lines without altering the odd lines.

  • Best score: 7
  • Best player score: 9
  • Position: #5 / 12
  • Number of attempts: 3
Mirror image - 75 entries

Add the second eye

  • Best score: 15
  • Best player score: 23
  • Position: #11 / 27
  • Number of attempts: 1
Find anomalies - 148 entries

There is one special character per line

  • Best score: 30
  • Best player score: 30
  • Position: #10 / 39
  • Number of attempts: 6
Quicksort - 1962 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #119 / 431
  • Number of attempts: 2
Contribute to keyboard mashing - 890 entries

Speak in tongues

  • Best score: 17
  • Best player score: 19
  • Position: #153 / 270
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 766 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #301 / 410
  • Number of attempts: 2
Search and Replace 0 - 4989 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #729 / 1624
  • Number of attempts: 5
Sort and add attributes - 1451 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #279 / 563
  • Number of attempts: 3
Add fold markers to a .c file - 625 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 30
  • Best player score: 34
  • Position: #89 / 183
  • Number of attempts: 3
Reconstruct the Sentence - 1507 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 20
  • Position: #141 / 412
  • Number of attempts: 5
Whitespace, empty lines and tabs - 3665 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #171 / 787
  • Number of attempts: 10
Flodder-challenge - 1262 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 56
  • Position: #319 / 335
  • Number of attempts: 1
Simple text editing with Vim - 12811 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2001 / 3694
  • Number of attempts: 7
Reformat/Refactor a Golfer Class - 6982 entries

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

  • Best score: 28
  • Best player score: 50
  • Position: #1394 / 1706
  • Number of attempts: 1
alexeypetrenko
Github:

entered into 17 challenges

contributed 0 challenges