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 - 279 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: #27 / 75
  • Number of attempts: 2
imports alignment (python) - 729 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 41
  • Position: #187 / 205
  • Number of attempts: 1
expand a list comprehension (python) - 348 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: #74 / 111
  • Number of attempts: 1
Almost encrypted - 212 entries

Convert the first paragraph to be even less readable.

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

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

  • Best score: 33
  • Best player score: 40
  • Position: #569 / 622
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7737 entries

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

  • Best score: 7
  • Best player score: 44
  • Position: #1156 / 1901
  • Number of attempts: 3
Alekseyka2
Twitter:

entered into 6 challenges

contributed 0 challenges