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

One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1651 / 3904
  • Number of attempts: 3
Split line with dots - 2175 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 25
  • Position: #520 / 639
  • Number of attempts: 1
Search and Replace 0 - 5162 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #455 / 1675
  • Number of attempts: 3
Just the middle - 11620 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2243 / 4258
  • Number of attempts: 2
Combines all items - 322 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 10
  • Position: #97 / 143
  • Number of attempts: 1
Array of characters - 198 entries

We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.

  • Best score: 33
  • Best player score: 42
  • Position: #33 / 50
  • Number of attempts: 4
-a-b-c- - 3242 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #350 / 1147
  • Number of attempts: 1
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1202 / 1764
  • Number of attempts: 1
Meninx
Twitter:

entered into 8 challenges

contributed 0 challenges