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

Insert column data on Confluence-style table - 444 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 41
  • Position: #35 / 106
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 532 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #47 / 294
  • Number of attempts: 2
Paste a column after a column - 2488 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 17
  • Position: #203 / 538
  • Number of attempts: 5
Filter number combinations that don't add to 11 - 398 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 28
  • Position: #63 / 113
  • Number of attempts: 3
Fizzbuzz - 557 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 76
  • Position: #80 / 166
  • Number of attempts: 2
One number per line - 18705 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2018 / 3855
  • Number of attempts: 2
For all cases. - 160 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #84 / 105
  • Number of attempts: 2
Vice versa - 7891 entries

Little role switching.

  • Best score: 12
  • Best player score: 22
  • Position: #1939 / 2121
  • Number of attempts: 1
I forgot quotes - 15954 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3387 / 4170
  • Number of attempts: 1
Thales
Twitter2:

entered into 9 challenges

contributed 0 challenges