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 - 34021 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 / 7517
  • Number of attempts: 9
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #390 / 3904
  • Number of attempts: 9
Wget failed to download redirections - 250 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: #56 / 73
  • Number of attempts: 4
vim = 22 / 7 - 491 entries

pi square vim

  • Best score: 20
  • Best player score: 34
  • Position: #114 / 136
  • Number of attempts: 1
V to the i - 4885 entries

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

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

Delete the instructions at the top and bottom.

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

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1598 / 2158
  • Number of attempts: 1
ASCII Art - 92 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 15
  • Position: #52 / 58
  • Number of attempts: 2
Mirror Symmetry - 845 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Position: #250 / 273
  • Number of attempts: 2
Mute the second method of this script - 465 entries

prepend a # infront of every line of the second method

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

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1323 / 4225
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1087 / 3717
  • Number of attempts: 5
Sort the VimGolf challenges by popularity - 369 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 / 110
  • Number of attempts: 6
The name of the game - 696 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #219 / 369
  • Number of attempts: 6
A Simple One - 1093 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 / 681
  • Number of attempts: 1
Simple text editing with Vim - 13645 entries

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

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

entered into 16 challenges

contributed 0 challenges