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

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

  • Best score: 14
  • Best player score: 20
  • Position: #78 / 301
  • Number of attempts: 5
Rearrange array to one line - 852 entries

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

  • Best score: 13
  • Best player score: 22
  • Position: #123 / 199
  • Number of attempts: 2
Copy punctuation - 719 entries

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

  • Best score: 19
  • Best player score: 39
  • Position: #94 / 174
  • Number of attempts: 2
Fix the shell script! - 2676 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 37
  • Position: #385 / 622
  • Number of attempts: 1
Com(m)a Trouble - 3988 entries

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

  • Best score: 12
  • Best player score: 28
  • Position: #774 / 908
  • Number of attempts: 2
Remember VimGolf Rules ! - 277 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #132 / 147
  • Number of attempts: 1
From A to B - 603 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 25
  • Position: #145 / 160
  • Number of attempts: 1
Draw the Go board - 149 entries

which is a 19×19 lines board. Here we use ascii characters only for simplicity. See diff file to get a sense. (See also http://en.wikipedia.org/wiki/Go_(game))

  • Best score: 50
  • Best player score: 70
  • Position: #29 / 51
  • Number of attempts: 3
Kevin Lou
Github:

entered into 8 challenges

contributed 0 challenges