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

Rural Post - 4462 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #58 / 1093
  • Number of attempts: 7
Simple, Practical, and Common - 33584 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: 22
  • Position: #961 / 7407
  • Number of attempts: 5
One number per line - 18710 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #244 / 3857
  • Number of attempts: 11
Separate the lines - 182 entries

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

  • Best score: 11
  • Best player score: 11
  • Position: #20 / 92
  • Number of attempts: 1
Palindrome numbers - 29 entries

For each number compute its associated palindrome. First number (first line) has been eaten! #prime

  • Best score: 30
  • Best player score: 34
  • Position: #13 / 16
  • Number of attempts: 1
multiple cursor alternative - 1519 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 21
  • Position: #203 / 380
  • Number of attempts: 2
From argument to object - 1503 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 17
  • Position: #6 / 455
  • Number of attempts: 13
Extract HTML option values from tag values - 110 entries

Generate HTML option values from the text in the option tag. If the text contains multiple words, replace the spaces with an underscore and convert all capital letters to small letters.

  • Best score: 34
  • Best player score: 36
  • Position: #15 / 44
  • Number of attempts: 3
Todo list specification - 399 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 37
  • Position: #26 / 179
  • Number of attempts: 3
Text to HTML Table - 180 entries

Turn the plain text table to an HTML table.

  • Best score: 52
  • Best player score: 52
  • Position: #7 / 53
  • Number of attempts: 9
For all cases. - 160 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #20 / 105
  • Number of attempts: 1
Stairstep digits - 392 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 9
  • Position: #5 / 144
  • Number of attempts: 2
Missing Library and a Typo - 887 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 14
  • Best player score: 16
  • Position: #29 / 213
  • Number of attempts: 3
Hidden Message - 93 entries

Find the hidden message and replace all other characters with spaces.

  • Best score: 33
  • Best player score: 38
  • Position: #17 / 30
  • Number of attempts: 2
Interactive git rebase changing commands - 172 entries

How to change the action of some commits in git rebase dialog.

  • Best score: 14
  • Best player score: 15
  • Position: #21 / 79
  • Number of attempts: 4
create arrows in a list - 112 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Position: #19 / 72
  • Number of attempts: 1
Create a table - 332 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 16
  • Position: #12 / 105
  • Number of attempts: 5
Fun With The Diagonal - 107 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #47 / 81
  • Number of attempts: 1
Double and switch - 43 entries

Aaaanother case switcher

  • Best score: 18
  • Best player score: 18
  • Position: #7 / 19
  • Number of attempts: 5
ascii-art diamond - 44 entries

Simple ascii-art diamond. The grid is 40x40.

  • Best score: 39
  • Best player score: 56
  • Position: #16 / 17
  • Number of attempts: 1
Hello ${world} - 324 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 24
  • Position: #9 / 96
  • Number of attempts: 8
Array transposition - 2415 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 18
  • Position: #176 / 446
  • Number of attempts: 4
120 Degrees - 493 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 33
  • Position: #134 / 145
  • Number of attempts: 1
Winding path - 122 entries

It's a maze, but the bad paths have been blocked off. Mark the correct path.

  • Best score: 27
  • Best player score: 51
  • Position: #25 / 42
  • Number of attempts: 4
Words in parens - 12928 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #110 / 3960
  • Number of attempts: 9
Vertical Limit - 2538 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #62 / 754
  • Number of attempts: 7
replacing each line of a block selection - 2996 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #304 / 775
  • Number of attempts: 6
constructor - 182 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 100
  • Position: #34 / 60
  • Number of attempts: 4
switch variable - 5067 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #19 / 1746
  • Number of attempts: 9
Ugly spreadsheet copy/paste to CSV - 1007 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 21
  • Position: #38 / 192
  • Number of attempts: 7
Replacing some words - 425 entries

How fast could it be?

  • Best score: 17
  • Best player score: 17
  • Position: #4 / 150
  • Number of attempts: 6
Make it more readable - 1986 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #4 / 646
  • Number of attempts: 5
remove dupes from array - 1354 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 17
  • Position: #25 / 335
  • Number of attempts: 12
imports alignment (python) - 700 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Position: #26 / 198
  • Number of attempts: 11
Numbering a List - 1931 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #220 / 652
  • Number of attempts: 7
A Simple One - 1043 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #350 / 659
  • Number of attempts: 1
Make Fancy Header - 1045 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 16
  • Position: #77 / 342
  • Number of attempts: 6
Simple text editing with Vim - 12692 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #53 / 3667
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6873 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 32
  • Position: #72 / 1683
  • Number of attempts: 15
Song Zheng
Twitter:

PYPL Nation

entered into 39 challenges

contributed 0 challenges