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 - 33958 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: #802 / 7498
  • Number of attempts: 9
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #390 / 3898
  • Number of attempts: 9
Wget failed to download redirections - 226 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
  • Position: #53 / 69
  • Number of attempts: 4
vim = 22 / 7 - 475 entries

pi square vim

  • Best score: 20
  • Best player score: 34
  • Position: #113 / 135
  • Number of attempts: 1
V to the i - 4848 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #449 / 1907
  • Number of attempts: 5
Just the middle - 11572 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #833 / 4240
  • Number of attempts: 4
Vice versa - 7995 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1594 / 2151
  • Number of attempts: 1
ASCII Art - 90 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 15
  • Position: #50 / 56
  • Number of attempts: 2
Mirror Symmetry - 830 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Position: #247 / 270
  • Number of attempts: 2
Mute the second method of this script - 460 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #119 / 242
  • Number of attempts: 3
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1319 / 4216
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10743 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1087 / 3710
  • Number of attempts: 5
Sort the VimGolf challenges by popularity - 348 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
  • Position: #24 / 107
  • Number of attempts: 6
The name of the game - 679 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #219 / 364
  • Number of attempts: 6
A Simple One - 1071 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
  • Position: #446 / 674
  • Number of attempts: 1
Simple text editing with Vim - 13468 entries

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

  • Best score: 13
  • Best player score: 32
  • Position: #3579 / 3865
  • Number of attempts: 1
Márton Németh
Twitter:

entered into 16 challenges

contributed 0 challenges