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 - 1649 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: #262 / 272
  • Number of attempts: 1
Rearrange array to one line - 774 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #144 / 183
  • Number of attempts: 4
Copy punctuation - 671 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: #150 / 159
  • Number of attempts: 2
Deleting text - 325 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 57
  • Position: #89 / 101
  • Number of attempts: 3
Count words - 92 entries

Merge duplicates and count each word.

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

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

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

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 48
  • Position: #295 / 300
  • Number of attempts: 2
Replace word while reserving first letter case - 641 entries

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

  • Best score: 24
  • Best player score: 54
  • Position: #110 / 124
  • Number of attempts: 1
months to html list items - 1110 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 39
  • Position: #278 / 301
  • Number of attempts: 3
Quicksort - 2061 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: #362 / 458
  • Number of attempts: 2
Murphy
Github:

entered into 10 challenges

contributed 0 challenges