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 - 32765 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: 27
  • Position: #3703 / 7241
  • Number of attempts: 1
Search and Replace 0 - 4583 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #217 / 1518
  • Number of attempts: 4
Just the middle - 11086 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2176 / 4093
  • Number of attempts: 3
Top X - 185 entries

The End File is the Top 10 Vimgolf Leaderboard at June 29, 2013. This is a second version, with a great contribution of @udioica. X is ten in Roman,a numeric system in ancient Rome

  • Best score: 18
  • Best player score: 38
  • Position: #63 / 67
  • Number of attempts: 1
Words in parens - 12690 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 25
  • Position: #3691 / 3906
  • Number of attempts: 1
Draw the Go board - 133 entries

which is a 19×19 lines board. Here we use ascii characters only for simplicity. See diff file to get a sense. (See also http://en.wikipedia.org/wiki/Go_(game))

  • Best score: 50
  • Best player score: 73
  • Position: #32 / 45
  • Number of attempts: 1
Saving the hashes(#) - 1937 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 33
  • Position: #409 / 462
  • Number of attempts: 6
Let's play some Ivmgolf - 985 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #172 / 409
  • Number of attempts: 3
switch variable - 4868 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 15
  • Position: #1434 / 1691
  • Number of attempts: 6
Simple text editing with Vim - 11431 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #1973 / 3357
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 5862 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 50
  • Position: #1214 / 1448
  • Number of attempts: 1
Vincent Lee
Twitter:

Vulnerability Researcher @TELUS. Previously: Agile Engineer @XtremeLabs

entered into 11 challenges

contributed 0 challenges