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 - 1396 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: #219 / 229
  • Number of attempts: 1
Rearrange array to one line - 667 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #128 / 161
  • Number of attempts: 4
Copy punctuation - 521 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: #124 / 133
  • Number of attempts: 2
Deleting text - 257 entries

Delete everything except some specific numbers.

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

Merge duplicates and count each word.

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

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

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

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 48
  • Position: #233 / 237
  • Number of attempts: 2
Replace word while reserving first letter case - 620 entries

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

  • Best score: 24
  • Best player score: 54
  • Position: #106 / 120
  • Number of attempts: 1
months to html list items - 1042 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 39
  • Position: #262 / 284
  • Number of attempts: 3
Quicksort - 2003 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: #347 / 441
  • Number of attempts: 2
Murphy
Github:

entered into 10 challenges

contributed 0 challenges