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

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 42
  • Position: #158 / 173
  • Number of attempts: 1
Delete the last function argument in python. - 485 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #55 / 178
  • Number of attempts: 9
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: 19
  • Position: #83 / 114
  • Number of attempts: 2
Quicksort - 2106 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 30
  • Position: #363 / 470
  • Number of attempts: 2
delete swap - 1880 entries

delete all swap

  • Best score: 5
  • Best player score: 12
  • Position: #505 / 575
  • Number of attempts: 3
Making 3 line function a one liner. - 346 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #188 / 213
  • Number of attempts: 2
Multiline to Single Line - 753 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #268 / 321
  • Number of attempts: 2
V to the i - 4860 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 9
  • Position: #1756 / 1910
  • Number of attempts: 2
Stairstep digits - 412 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 14
  • Position: #143 / 151
  • Number of attempts: 2
One to Ten - 2248 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 24
  • Position: #651 / 686
  • Number of attempts: 1
Change name of a variable - 182 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #134 / 140
  • Number of attempts: 1
Where should I put the Newline? - 897 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #419 / 445
  • Number of attempts: 2
The Quick Brown Fox Jumps Over The Lazy Vim - 445 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 10
  • Position: #102 / 198
  • Number of attempts: 3
SFD-ROC: vimvimvim - 1641 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 9
  • Position: #256 / 456
  • Number of attempts: 4
SFD-ROC: ROT13 Phonics - 111 entries

A is for apple, b is for ball, etc... This familiar phonics poem has been rotated 13 characters. Make the letter match the word.

  • Best score: 6
  • Best player score: 6
  • Position: #64 / 76
  • Number of attempts: 1
Let's play some Ivmgolf - 1151 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #345 / 456
  • Number of attempts: 4
Remove semicolons after expressions - 671 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 12
  • Position: #262 / 266
  • Number of attempts: 2
The meaning - 580 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #329 / 365
  • Number of attempts: 3
Jakob Föger
Github:

entered into 18 challenges

contributed 0 challenges