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. - 261 entries

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #25 / 88
  • Number of attempts: 4
From brakets to parens - 1156 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: #209 / 251
  • Number of attempts: 1
π - 299 entries

1200 π chars

  • Best score: 16
  • Best player score: 37
  • Position: #54 / 72
  • Number of attempts: 2
Sort and Tag - 688 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: #135 / 146
  • Number of attempts: 1
Changing date formats - 710 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 65
  • Position: #68 / 197
  • Number of attempts: 3
Change to ascending order - 509 entries

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

  • Best score: 13
  • Best player score: 63
  • Position: #86 / 126
  • Number of attempts: 2
Reorganize Pokémon - 831 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 30
  • Position: #198 / 227
  • Number of attempts: 2
Com(m)a Trouble - 3988 entries

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

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

entered into 9 challenges

contributed 0 challenges