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

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 24
  • Position: #65 / 170
  • Number of attempts: 10
Delete the last function argument in python. - 478 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #67 / 174
  • Number of attempts: 4
Flip All Bits - 299 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 26
  • Best player score: 61
  • Position: #84 / 97
  • Number of attempts: 2
From brakets to parens - 1249 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: 40
  • Position: #179 / 277
  • Number of attempts: 2
Create json from a .env file - 1637 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 56
  • Position: #157 / 401
  • Number of attempts: 6
Reordering properties - 1308 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: 86
  • Position: #186 / 293
  • Number of attempts: 2
Changing date formats - 725 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 100
  • Position: #138 / 204
  • Number of attempts: 1
YAML to dotenv - 1581 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 30
  • Position: #228 / 330
  • Number of attempts: 3
Fix timezone format - 345 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: 20
  • Position: #91 / 114
  • Number of attempts: 1
Remove adjacent duplicates - 718 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 26
  • Position: #99 / 179
  • Number of attempts: 2
Delta Null
Github:

entered into 10 challenges

contributed 0 challenges