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

Rearrange array to single level - 1094 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 130
  • Position: #177 / 186
  • Number of attempts: 1
Rearrange array to one line - 521 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 27
  • Position: #103 / 129
  • Number of attempts: 4
Copy punctuation - 419 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 92
  • Position: #98 / 106
  • Number of attempts: 2
Deleting text - 217 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 57
  • Position: #65 / 73
  • Number of attempts: 3
Count words - 49 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 223
  • Position: #15 / 15
  • Number of attempts: 1
Format a long line - 71 entries

Reformat long lines (gq), textwidth=78, no trailing spaces.

  • Best score: 17
  • Best player score: 485
  • Position: #25 / 25
  • Number of attempts: 1
New teacher - 836 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 48
  • Position: #171 / 174
  • Number of attempts: 2
Replace word while reserving first letter case - 563 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 54
  • Position: #99 / 113
  • Number of attempts: 1
months to html list items - 957 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 39
  • Position: #235 / 254
  • Number of attempts: 3
Quicksort - 1875 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: 31
  • Position: #327 / 411
  • Number of attempts: 2
Murphy
Github:

entered into 10 challenges

contributed 0 challenges