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, Practical, and Common - 32910 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
  • Position: #27 / 7271
  • Number of attempts: 6
Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #2 / 1241
  • Number of attempts: 5
One number per line - 18378 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1525 / 3788
  • Number of attempts: 3
That hyphen - 2498 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #313 / 683
  • Number of attempts: 4
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1763 / 4112
  • Number of attempts: 4
Basic renumbering - 5430 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #354 / 1227
  • Number of attempts: 10
Fun With The Diagonal - 97 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #22 / 74
  • Number of attempts: 1
Vice versa - 7522 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #7 / 2044
  • Number of attempts: 3
Free hyphen! - 147 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
  • Position: #54 / 81
  • Number of attempts: 2
Paragraph sort - 414 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #50 / 120
  • Number of attempts: 2
Align commas - 1040 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
  • Position: #122 / 236
  • Number of attempts: 2
Generate a list of numbers - 276 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Position: #66 / 131
  • Number of attempts: 1
Mirror Symmetry - 781 entries

Add backslashes.

  • Best score: 7
  • Best player score: 12
  • Position: #129 / 262
  • Number of attempts: 5
From A to B - 556 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 17
  • Position: #58 / 153
  • Number of attempts: 4
VimGolfNight - 495 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #217 / 327
  • Number of attempts: 1
swap or reverse - 104 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #19 / 62
  • Number of attempts: 2
Space out the alphabet - 1590 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 22
  • Position: #304 / 433
  • Number of attempts: 1
Shuffled numbers - 212 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
  • Position: #20 / 88
  • Number of attempts: 4
Condensed Cases - 752 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
  • Position: #78 / 230
  • Number of attempts: 6
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #546 / 1112
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1448 / 3919
  • Number of attempts: 4
Dehamlizing - 174 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 97
  • Position: #67 / 67
  • Number of attempts: 1
The name of the game - 627 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #191 / 343
  • Number of attempts: 1
HTML to Haml - 800 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 36
  • Position: #87 / 197
  • Number of attempts: 4
Simple text editing with Vim - 11637 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1220 / 3413
  • Number of attempts: 1
Victor Haffreingue
Twitter:

Anyone who stops learning is old.

entered into 25 challenges

contributed 0 challenges