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 - 438 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 / 103
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 504 entries

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

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

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

  • Best score: 14
  • Best player score: 17
  • Position: #196 / 514
  • Number of attempts: 5
Filter number combinations that don't add to 11 - 379 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: #62 / 112
  • Number of attempts: 3
Fizzbuzz - 534 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 76
  • Position: #77 / 160
  • Number of attempts: 2
One number per line - 18668 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2016 / 3851
  • Number of attempts: 2
For all cases. - 144 entries

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

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

Little role switching.

  • Best score: 12
  • Best player score: 22
  • Position: #1931 / 2111
  • Number of attempts: 1
I forgot quotes - 15943 entries

Oops.

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

entered into 9 challenges

contributed 0 challenges