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 - 1528 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: #244 / 254
  • Number of attempts: 1
Rearrange array to one line - 719 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #136 / 174
  • Number of attempts: 4
Copy punctuation - 599 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: #140 / 149
  • Number of attempts: 2
Deleting text - 295 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 57
  • Position: #84 / 95
  • Number of attempts: 3
Count words - 80 entries

Merge duplicates and count each word.

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

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

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

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 48
  • Position: #282 / 287
  • Number of attempts: 2
Replace word while reserving first letter case - 636 entries

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

  • Best score: 24
  • Best player score: 54
  • Position: #108 / 122
  • Number of attempts: 1
months to html list items - 1088 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 39
  • Position: #272 / 295
  • Number of attempts: 3
Quicksort - 2038 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: #358 / 452
  • Number of attempts: 2
Murphy
Github:

entered into 10 challenges

contributed 0 challenges