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: 22
  • Position: #49 / 126
  • Number of attempts: 6
Change your calendar - 278 entries

Happy New Year!

  • Best score: 18
  • Best player score: 41
  • Position: #71 / 76
  • Number of attempts: 4
-a-b-c- - 3077 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 22
  • Position: #1065 / 1099
  • Number of attempts: 2
Neither Fizz nor Buzz - 205 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 20
  • Position: #42 / 93
  • Number of attempts: 5
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: 16
  • Position: #492 / 1037
  • Number of attempts: 3
Assign list - 146 entries

Assign list elements to matrix

  • Best score: 30
  • Best player score: 31
  • Position: #7 / 55
  • Number of attempts: 9
Parsing with CSV: Unify lines and result. - 163 entries

col1;col2;col3;col4 A;1;4;5 A;3;4; A;1;4; # New output: col1;col2;col3;col4 A;1(2x);3;4(3x);5 any ideas?

  • Best score: 21
  • Best player score: 21
  • Position: #13 / 71
  • Number of attempts: 6
Define to require - 118 entries

When JSHint is enabled, there's a rule that doesn't let you have more than 6 arguments in a function, so the moment you need to add a 7th argument, you need to do a refactoring.

  • Best score: 62
  • Best player score: 88
  • Position: #29 / 48
  • Number of attempts: 2
Refactor arguments into object argument - 159 entries

A relatively common Javascript refactoring.

  • Best score: 48
  • Best player score: 57
  • Position: #14 / 63
  • Number of attempts: 11
Remove noise from HTTP log - 641 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Position: #75 / 255
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 5804 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 32
  • Position: #75 / 1438
  • Number of attempts: 22
Ben Zittlau
Twitter:

Canadian Tech Entrepreneur and Advocate. Director of Engineering at Jobber.

entered into 11 challenges

contributed 0 challenges