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

Aligning function arguments to match a specific coding style - 259 entries

Most projects have specific coding style guidelines. In this case, the argument list must be broken into a new line for each argument, with the argument names right aligned, taking into account pointers.

  • Best score: 16
  • Best player score: 17
  • Position: #26 / 72
  • Number of attempts: 2
imports alignment (python) - 700 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 41
  • Position: #181 / 198
  • Number of attempts: 1
expand a list comprehension (python) - 334 entries

Please show your way to convert a list comprehension in python to an ordinary for-loop expression!

  • Best score: 42
  • Best player score: 58
  • Position: #73 / 110
  • Number of attempts: 1
Almost encrypted - 204 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #57 / 146
  • Number of attempts: 1
Sort and add attributes - 1475 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 40
  • Position: #525 / 573
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7102 entries

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

  • Best score: 28
  • Best player score: 44
  • Position: #1082 / 1743
  • Number of attempts: 3
Alekseyka2
Twitter:

entered into 6 challenges

contributed 0 challenges