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

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

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

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

  • Best score: 24
  • Best player score: 51
  • Position: #109 / 127
  • Number of attempts: 1
months to html list items - 1151 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 40
  • Position: #289 / 311
  • Number of attempts: 5
Populate 3D bone names list - 656 entries

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

  • Best score: 21
  • Best player score: 38
  • Position: #140 / 169
  • Number of attempts: 4
Paste a column after a column - 2668 entries

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

  • Best score: 14
  • Best player score: 80
  • Position: #555 / 578
  • Number of attempts: 1
Reformat symbols in list - 1658 entries

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

  • Best score: 24
  • Best player score: 131
  • Position: #350 / 357
  • Number of attempts: 1
hello-world-vimgolf - 2533 entries

Simple number generation

  • Best score: 10
  • Best player score: 13
  • Position: #508 / 726
  • Number of attempts: 4
Rural Post - 4602 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #684 / 1124
  • Number of attempts: 7
Add quotes to ansible playbook - 1049 entries

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

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

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 11
  • Position: #457 / 537
  • Number of attempts: 5
Separate the lines - 202 entries

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

  • Best score: 11
  • Best player score: 15
  • Position: #85 / 98
  • Number of attempts: 4
Add string initializers to an enum - 903 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 44
  • Position: #258 / 266
  • Number of attempts: 3
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2385 / 3098
  • Number of attempts: 4
Search and Replace 0 - 5159 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1107 / 1674
  • Number of attempts: 4
For all cases. - 180 entries

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

  • Best score: 8
  • Best player score: 25
  • Position: #111 / 111
  • Number of attempts: 3
Fiddle percentages into real numbers - 886 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: #290 / 297
  • Number of attempts: 2
Free hyphen! - 199 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 / 97
  • Number of attempts: 7
Swap assigned value - 694 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 31
  • Position: #262 / 263
  • Number of attempts: 5
VimGolfNight - 602 entries

Based on "The name of the game".

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

Put 3 spaces between adjacent letters.

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

A HAPPY NEW YEAR 2014 !

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

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

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

End up with the name of the game.

  • Best score: 11
  • Best player score: 17
  • Position: #362 / 369
  • Number of attempts: 3
Vertical Limit - 2637 entries

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

  • Best score: 21
  • Best player score: 43
  • Position: #763 / 778
  • Number of attempts: 1
replacing each line of a block selection - 3067 entries

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

  • Best score: 18
  • Best player score: 43
  • Position: #778 / 789
  • Number of attempts: 4
Increment, increment, increment.... - 706 entries

Vim likes macros

  • Best score: 10
  • Best player score: 13
  • Position: #395 / 416
  • Number of attempts: 4
Context insensitive completion 0 - 605 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: #217 / 255
  • Number of attempts: 6
Sort and add attributes - 1591 entries

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

  • Best score: 33
  • Best player score: 49
  • Position: #605 / 615
  • Number of attempts: 4
Flodder-challenge - 1500 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 49
  • Position: #341 / 378
  • Number of attempts: 4
Simple text editing with Vim - 13626 entries

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

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

entered into 30 challenges

contributed 0 challenges