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

Swap function parameters and delete all comments in python. - 923 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 24
  • Position: #89 / 228
  • Number of attempts: 4
Delete the last function argument in python. - 611 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #25 / 221
  • Number of attempts: 4
From brakets to parens - 1290 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 51
  • Position: #241 / 290
  • Number of attempts: 1
π - 327 entries

1200 π chars

  • Best score: 16
  • Best player score: 37
  • Position: #62 / 80
  • Number of attempts: 2
Reordering properties - 1368 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 82
  • Position: #176 / 296
  • Number of attempts: 2
Sort and Tag - 731 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 200
  • Position: #141 / 154
  • Number of attempts: 1
Changing date formats - 749 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 65
  • Position: #71 / 210
  • Number of attempts: 3
Change to ascending order - 541 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 63
  • Position: #91 / 132
  • Number of attempts: 2
Reorganize Pokémon - 875 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 30
  • Position: #209 / 240
  • Number of attempts: 2
Com(m)a Trouble - 3993 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 20
  • Position: #677 / 910
  • Number of attempts: 1
Pranav Varkey
Github:

entered into 10 challenges

contributed 0 challenges