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 - 276 entries

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

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

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

  • Best score: 24
  • Best player score: 51
  • Position: #106 / 124
  • Number of attempts: 1
months to html list items - 1108 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 40
  • Position: #279 / 300
  • Number of attempts: 5
Populate 3D bone names list - 638 entries

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

  • Best score: 21
  • Best player score: 38
  • Position: #138 / 166
  • Number of attempts: 4
Paste a column after a column - 2632 entries

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

  • Best score: 14
  • Best player score: 80
  • Position: #548 / 570
  • 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 - 2513 entries

Simple number generation

  • Best score: 10
  • Best player score: 13
  • Position: #501 / 717
  • Number of attempts: 4
Rural Post - 4572 entries

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

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

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

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

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 11
  • Position: #455 / 534
  • 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 - 892 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 44
  • Position: #255 / 263
  • Number of attempts: 3
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2373 / 3085
  • Number of attempts: 4
Search and Replace 0 - 5027 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1089 / 1637
  • 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 - 671 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 31
  • Position: #258 / 259
  • 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 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1602 / 3700
  • 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 - 2596 entries

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

  • Best score: 21
  • Best player score: 43
  • Position: #752 / 767
  • Number of attempts: 1
replacing each line of a block selection - 3007 entries

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

  • Best score: 18
  • Best player score: 43
  • Position: #769 / 780
  • 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 - 592 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: #213 / 250
  • Number of attempts: 6
Sort and add attributes - 1539 entries

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

  • Best score: 33
  • Best player score: 49
  • Position: #585 / 594
  • Number of attempts: 4
Flodder-challenge - 1401 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 49
  • Position: #322 / 358
  • Number of attempts: 4
Simple text editing with Vim - 13262 entries

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

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

entered into 30 challenges

contributed 0 challenges