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 - 1684 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: #270 / 281
  • Number of attempts: 1
Rearrange array to one line - 799 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #147 / 187
  • Number of attempts: 4
Copy punctuation - 679 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: #154 / 164
  • Number of attempts: 2
Deleting text - 326 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 57
  • Position: #90 / 102
  • Number of attempts: 3
Count words - 112 entries

Merge duplicates and count each word.

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

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

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

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 48
  • Position: #299 / 304
  • Number of attempts: 2
Replace word while reserving first letter case - 663 entries

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

  • Best score: 24
  • Best player score: 54
  • Position: #112 / 126
  • Number of attempts: 1
months to html list items - 1119 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 39
  • Position: #279 / 303
  • Number of attempts: 3
Quicksort - 2077 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: #365 / 462
  • Number of attempts: 2
Murphy
Github:

entered into 10 challenges

contributed 0 challenges