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

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 23
  • Position: #88 / 235
  • Number of attempts: 7
Delete the last function argument in python. - 649 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #120 / 233
  • Number of attempts: 3
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #72 / 342
  • Number of attempts: 11
Fix timezone format - 372 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 15
  • Position: #22 / 120
  • Number of attempts: 8
Copy punctuation - 747 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 38
  • Position: #99 / 183
  • Number of attempts: 2
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 18
  • Position: #1815 / 2158
  • Number of attempts: 1
Inner hyphens - 155 entries

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

  • Best score: 11
  • Best player score: 11
  • Position: #17 / 90
  • Number of attempts: 2
mcrmck
Github:

entered into 7 challenges

contributed 0 challenges