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 - 264 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: #22 / 67
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 336 entries

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

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

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

  • Best score: 14
  • Best player score: 17
  • Position: #141 / 370
  • Number of attempts: 5
Filter number combinations that don't add to 11 - 249 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: #42 / 81
  • Number of attempts: 3
Fizzbuzz - 438 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 76
  • Position: #67 / 137
  • Number of attempts: 2
One number per line - 18559 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2007 / 3830
  • Number of attempts: 2
For all cases. - 135 entries

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

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

Little role switching.

  • Best score: 12
  • Best player score: 22
  • Position: #1906 / 2079
  • Number of attempts: 1
I forgot quotes - 15880 entries

Oops.

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

entered into 9 challenges

contributed 0 challenges