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

Quicksort - 2095 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: 7
  • Position: #151 / 465
  • Number of attempts: 6
Paste a column after a column - 2662 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 14
  • Position: #87 / 576
  • Number of attempts: 7
HS exam question - 1610 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 54
  • Position: #76 / 420
  • Number of attempts: 9
Visual block training - 1116 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 29
  • Position: #89 / 208
  • Number of attempts: 5
Whitespace, empty lines and tabs - 3952 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #172 / 842
  • Number of attempts: 9
Simple text editing with Vim - 13430 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2006 / 3850
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 7533 entries

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

  • Best score: 7
  • Best player score: 39
  • Position: #813 / 1852
  • Number of attempts: 5
ye-chuan
Github:

entered into 7 challenges

contributed 0 challenges