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 - 2113 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: #152 / 472
  • Number of attempts: 6
Paste a column after a column - 2668 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 / 578
  • Number of attempts: 7
HS exam question - 1613 entries

Convert the data to a python dictionary

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

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

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

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

  • Best score: 16
  • Best player score: 17
  • Position: #175 / 862
  • Number of attempts: 9
Simple text editing with Vim - 13626 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2020 / 3902
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 7681 entries

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

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

entered into 7 challenges

contributed 0 challenges