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

From argument to object - 1230 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 27
  • Number of attempts: 1
V to the i - 4508 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
Separating firstname & lastname - 107 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 30
  • Number of attempts: 4
Space out the alphabet - 1480 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 40
  • Number of attempts: 1
The name of the game - 597 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
Vertical Limit - 2264 entries

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

  • Best score: 21
  • Best player score: 26
  • Number of attempts: 4
Collect List - 4035 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 4
I forgot quotes - 15138 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Number of attempts: 2
Split line with dots - 2043 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 27
  • Number of attempts: 3
Words in parens - 12378 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
Letters are numbers - 127 entries

Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?

  • Best score: 20
  • Best player score: 41
  • Number of attempts: 1
The Universal Declaration of Human Rights, Article 1 - 129 entries

Somebody's got this slightly muddled up. See how quickly you can fix it. (I made this to experiment with buffers. I'm not actually sure whether this is faster with buffers or without.)

  • Best score: 24
  • Best player score: 187
  • Number of attempts: 1
Mark Watson
Twitter:

entered into 12 challenges

contributed 0 challenges