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

Change class fields from snake case to camel case - 246 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 13
  • Position: #44 / 94
  • Number of attempts: 3
Replace word while reserving first letter case - 636 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 51
  • Position: #104 / 122
  • Number of attempts: 1
months to html list items - 1088 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 40
  • Position: #274 / 295
  • Number of attempts: 5
Populate 3D bone names list - 636 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 38
  • Position: #136 / 164
  • Number of attempts: 4
Paste a column after a column - 2610 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 80
  • Position: #544 / 566
  • Number of attempts: 1
Reformat symbols in list - 1635 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 131
  • Position: #346 / 352
  • Number of attempts: 1
hello-world-vimgolf - 2506 entries

Simple number generation

  • Best score: 10
  • Best player score: 13
  • Position: #498 / 713
  • Number of attempts: 4
Rural Post - 4567 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 13
  • Position: #678 / 1114
  • Number of attempts: 7
Add quotes to ansible playbook - 1015 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 8
  • Position: #95 / 319
  • Number of attempts: 9
Yo To Hello - 1151 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 11
  • Position: #455 / 533
  • Number of attempts: 5
Separate the lines - 191 entries

Every other line is mixed up. Separate them into their original texts.

  • Best score: 11
  • Best player score: 15
  • Position: #83 / 95
  • Number of attempts: 4
Add string initializers to an enum - 884 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 44
  • Position: #254 / 261
  • Number of attempts: 3
Add semicolons - 10899 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2369 / 3078
  • Number of attempts: 4
Search and Replace 0 - 5007 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Position: #1085 / 1631
  • Number of attempts: 4
For all cases. - 168 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 25
  • Position: #108 / 108
  • Number of attempts: 3
Fiddle percentages into real numbers - 873 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 34
  • Position: #287 / 294
  • Number of attempts: 2
Free hyphen! - 176 entries

Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?

  • Best score: 9
  • Best player score: 9
  • Position: #36 / 90
  • Number of attempts: 7
Swap assigned value - 664 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 31
  • Position: #257 / 258
  • Number of attempts: 5
VimGolfNight - 575 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #299 / 352
  • Number of attempts: 2
Space out the alphabet - 1659 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 166
  • Position: #446 / 446
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10699 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1602 / 3695
  • Number of attempts: 7
Shuffle and Sort - 233 entries

The values where sorted incorrectly. Get them back to how they are supposed to be

  • Best score: 17
  • Best player score: 68
  • Position: #69 / 69
  • Number of attempts: 2
The name of the game - 678 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 17
  • Position: #356 / 363
  • Number of attempts: 3
Vertical Limit - 2574 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 43
  • Position: #747 / 761
  • Number of attempts: 1
replacing each line of a block selection - 3005 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 43
  • Position: #768 / 779
  • Number of attempts: 4
Increment, increment, increment.... - 701 entries

Vim likes macros

  • Best score: 10
  • Best player score: 13
  • Position: #392 / 413
  • Number of attempts: 4
Context insensitive completion 0 - 590 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 9
  • Position: #212 / 249
  • Number of attempts: 6
Sort and add attributes - 1507 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 49
  • Position: #576 / 584
  • Number of attempts: 4
Flodder-challenge - 1369 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 49
  • Position: #317 / 352
  • Number of attempts: 4
Simple text editing with Vim - 13134 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 32
  • Position: #3509 / 3776
  • Number of attempts: 2
mojito04
Github:

entered into 30 challenges

contributed 0 challenges