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

Filename Flip - 196 entries

Rearrange the MP3 filenames so that the identifier comes before the name.

  • Best score: 15
  • Best player score: 17
  • Position: #25 / 70
  • Number of attempts: 3
Filling braces - 481 entries

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

  • Best score: 21
  • Best player score: 24
  • Position: #12 / 157
  • Number of attempts: 10
Delete the last function argument in python. - 729 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #134 / 261
  • Number of attempts: 2
Flip All Bits - 503 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: 24
  • Best player score: 41
  • Position: #65 / 144
  • Number of attempts: 2
CaN yOuR ViM dO ThAt? #1 - 309 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 201
  • Position: #123 / 123
  • Number of attempts: 1
Fix timezone format - 385 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: 16
  • Position: #40 / 126
  • Number of attempts: 7
Simple, Practical, and Common - 34031 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 41
  • Position: #7244 / 7520
  • Number of attempts: 1
Com(m)a Trouble - 3992 entries

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

  • Best score: 7
  • Best player score: 16
  • Position: #540 / 910
  • Number of attempts: 8
lamb had a little Mary - 661 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 88
  • Position: #180 / 181
  • Number of attempts: 1
Ziad
Github:

entered into 9 challenges

contributed 0 challenges