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 - 1340 entries

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

  • Best score: 14
  • Best player score: 28
  • Position: #127 / 215
  • Number of attempts: 3
Rearrange array to one line - 616 entries

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

  • Best score: 13
  • Best player score: 29
  • Position: #129 / 152
  • Number of attempts: 2
Copy punctuation - 494 entries

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

  • Best score: 19
  • Best player score: 251
  • Position: #123 / 125
  • Number of attempts: 1
Replace word while reserving first letter case - 604 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #23 / 118
  • Number of attempts: 12
Com(m)a Trouble - 3853 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #350 / 871
  • Number of attempts: 7
Stanley F
Github:

entered into 5 challenges

contributed 0 challenges