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

vim = 22 / 7 - 408 entries

pi square vim

  • Best score: 20
  • Best player score: 20
  • Position: #16 / 126
  • Number of attempts: 7
Swap assigned value - 525 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #51 / 226
  • Number of attempts: 4
Counting in binary - 405 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 34
  • Position: #54 / 105
  • Number of attempts: 3
quotes inside quotes - 2996 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 3
  • Best player score: 14
  • Position: #17 / 1037
  • Number of attempts: 8
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: 27
  • Position: #35 / 67
  • Number of attempts: 3
Number an outline - 210 entries

The indent and words are right, but the numbers are all wrong.

  • Best score: 25
  • Best player score: 40
  • Position: #21 / 67
  • Number of attempts: 7
Words in parens - 12677 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #45 / 3903
  • Number of attempts: 5
Pairs of numbers - 340 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 37
  • Position: #67 / 126
  • Number of attempts: 1
Assign list - 146 entries

Assign list elements to matrix

  • Best score: 30
  • Best player score: 32
  • Position: #13 / 55
  • Number of attempts: 6
Hole-in-one - 963 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 18
  • Position: #111 / 294
  • Number of attempts: 7
Delete unwanted lines - 350 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #51 / 210
  • Number of attempts: 1
Prefixes and suffixes - 533 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 22
  • Position: #38 / 175
  • Number of attempts: 4
Vertical Limit - 2300 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 23
  • Position: #196 / 701
  • Number of attempts: 7
switch variable - 4863 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #175 / 1688
  • Number of attempts: 2
Simple text editing with Vim - 11354 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #166 / 3335
  • Number of attempts: 6
_ky_
Twitter:

Type Well(Group π, XC XD XD XD) Rubik's Cube(333: Sub 19, 444: Sub 116, 333BLD: Best Time 6:44.38)

entered into 15 challenges

contributed 0 challenges