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

Simple text editing with Vim - 9863 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 32
  • Number of attempts: 1
Simple, Practical, and Common - 20844 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 5
  • Best player score: 22
  • Number of attempts: 9
Vice versa - 5291 entries

Little role switching.

  • Best score: 2
  • Best player score: 17
  • Number of attempts: 1
ASCII Art - 67 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 2
Mute the second method of this script - 393 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 3
Mirror Symmetry - 676 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Number of attempts: 2
Just the middle - 8425 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 9012 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
V to the i - 3495 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 5
The name of the game - 571 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 6
A Simple One - 806 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 1
I forgot quotes - 10037 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 7
Sort the VimGolf challenges by popularity - 241 entries

"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 6
vim = 22 / 7 - 391 entries

pi square vim

  • Best score: 20
  • Best player score: 34
  • Number of attempts: 1
Wget failed to download redirections - 153 entries

Output of a wget session, where 302 where not properly handled due to certificate problems, has been saved to a file. Keep the correct URLs to start again downloading.

  • Best score: 15
  • Best player score: 23
  • Number of attempts: 4
One number per line - 10273 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 9
Márton Németh
Twitter:

entered into 16 challenges

contributed 0 challenges