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

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

  • Best score: 9
  • Best player score: 9
  • Position: #58 / 1071
  • Number of attempts: 7
Simple, Practical, and Common - 33385 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 / 7364
  • Number of attempts: 5
One number per line - 18616 entries

Just give me the numbers.

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

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

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

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

  • Best score: 30
  • Best player score: 34
  • Position: #11 / 14
  • Number of attempts: 1
multiple cursor alternative - 1474 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: #200 / 376
  • Number of attempts: 2
From argument to object - 1474 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 / 450
  • Number of attempts: 13
Extract HTML option values from tag values - 98 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: #13 / 42
  • Number of attempts: 3
Todo list specification - 385 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 / 176
  • Number of attempts: 3
Text to HTML Table - 171 entries

Turn the plain text table to an HTML table.

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

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

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

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 9
  • Position: #5 / 141
  • Number of attempts: 2
Missing Library and a Typo - 856 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: 15
  • Best player score: 16
  • Position: #26 / 209
  • Number of attempts: 3
Hidden Message - 77 entries

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

  • Best score: 33
  • Best player score: 38
  • Position: #16 / 29
  • Number of attempts: 2
Interactive git rebase changing commands - 161 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #20 / 77
  • Number of attempts: 4
create arrows in a list - 106 entries

Add arrow at same distance

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

Convert the given input into a formatted table

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

change the lowercase characters on the main diagonal to uppercase

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

Aaaanother case switcher

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

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

  • Best score: 40
  • Best player score: 56
  • Position: #14 / 15
  • Number of attempts: 1
Hello ${world} - 299 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

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

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 18
  • Position: #173 / 443
  • Number of attempts: 4
120 Degrees - 468 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 33
  • Position: #132 / 143
  • Number of attempts: 1
Winding path - 93 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: #23 / 40
  • Number of attempts: 4
Words in parens - 12858 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #106 / 3946
  • Number of attempts: 9
Vertical Limit - 2440 entries

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

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

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

  • Best score: 18
  • Best player score: 21
  • Position: #298 / 768
  • Number of attempts: 6
constructor - 180 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 100
  • Position: #33 / 58
  • Number of attempts: 4
switch variable - 5036 entries

how fast can you switch two variable ?

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

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

  • Best score: 19
  • Best player score: 21
  • Position: #35 / 185
  • Number of attempts: 7
Replacing some words - 419 entries

How fast could it be?

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

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #4 / 640
  • Number of attempts: 5
remove dupes from array - 1336 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 / 331
  • Number of attempts: 12
imports alignment (python) - 661 entries

Align as one import per line.

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

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #212 / 639
  • Number of attempts: 7
A Simple One - 1001 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 / 643
  • Number of attempts: 1
Make Fancy Header - 1014 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Position: #75 / 338
  • Number of attempts: 6
Simple text editing with Vim - 12286 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 / 3581
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6558 entries

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

  • Best score: 32
  • Best player score: 32
  • Position: #71 / 1615
  • Number of attempts: 15
Song Zheng
Twitter:

PYPL Nation

entered into 39 challenges

contributed 0 challenges