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

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 3
Space out the alphabet - 1479 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 22
  • Number of attempts: 1
Simple, Practical, and Common - 31370 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: 22
  • Best player score: 22
  • Number of attempts: 6
Words in parens - 12303 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 4
Dehamlizing - 156 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 97
  • Number of attempts: 1
Condensed Cases - 729 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 6
That hyphen - 2411 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 4
Just the middle - 10727 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 4
Vice versa - 7085 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Mirror Symmetry - 739 entries

Add backslashes.

  • Best score: 7
  • Best player score: 12
  • Number of attempts: 5
Basic renumbering - 5244 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 10
The name of the game - 597 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
VimGolfNight - 478 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 1
Fun With The Diagonal - 90 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
Swap values - 4261 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
-a-b-c- - 2960 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 2
Align commas - 957 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 16
  • Number of attempts: 2
Free hyphen! - 133 entries

Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 2
HTML to Haml - 758 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 36
  • Number of attempts: 4
swap or reverse - 98 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 2
Simple text editing with Vim - 11156 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 1
Shuffled numbers - 203 entries

Each number is paired with the number it should follow. That's enough information to put them in order.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 4
Generate a list of numbers - 262 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 1
From A to B - 532 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 4
Paragraph sort - 342 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 2
Victor Haffreingue
Twitter:

Anyone who stops learning is old.

entered into 25 challenges

contributed 0 challenges