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

Winding path - 91 entries

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

  • Best score: 27
  • Best player score: 51
  • Number of attempts: 4
Extract HTML option values from tag values - 73 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
  • Number of attempts: 3
Palindrome numbers - 10 entries

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

  • Best score: 30
  • Best player score: 34
  • Number of attempts: 1
Todo list specification - 272 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
  • Number of attempts: 3
Hello ${world} - 194 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 24
  • Number of attempts: 8
Simple, Practical, and Common - 20860 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: 5
  • Best player score: 22
  • Number of attempts: 5
constructor - 161 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 100
  • Number of attempts: 4
ascii-art diamond - 27 entries

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

  • Best score: 40
  • Best player score: 56
  • Number of attempts: 1
Vertical Limit - 1995 entries

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

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 7
replacing each line of a block selection - 2374 entries

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

  • Best score: 17
  • Best player score: 21
  • Number of attempts: 6
Text to HTML Table - 129 entries

Turn the plain text table to an HTML table.

  • Best score: 52
  • Best player score: 52
  • Number of attempts: 9
120 Degrees - 337 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 33
  • Number of attempts: 1
multiple cursor alternative - 863 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
  • Number of attempts: 2
Ugly spreadsheet copy/paste to CSV - 664 entries

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

  • Best score: 19
  • Best player score: 21
  • Number of attempts: 7
Make it more readable - 1703 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 5
remove dupes from array - 1158 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
  • Number of attempts: 12
Simple text editing with Vim - 9868 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 5
Hidden Message - 43 entries

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

  • Best score: 33
  • Best player score: 38
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5335 entries

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

  • Best score: 32
  • Best player score: 32
  • Number of attempts: 15
Stairstep digits - 193 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 2
Create a table - 207 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 5
Separate the lines - 116 entries

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

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
switch variable - 4069 entries

how fast can you switch two variable ?

  • Best score: 3
  • Best player score: 11
  • Number of attempts: 9
Fun With The Diagonal - 74 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
create arrows in a list - 62 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
For all cases. - 91 entries

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

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 1
Words in parens - 10287 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 9
A Simple One - 806 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
  • Number of attempts: 1
Interactive git rebase changing commands - 133 entries

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

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 4
One number per line - 10275 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 11
Make Fancy Header - 874 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 6
Numbering a List - 1684 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Number of attempts: 7
imports alignment (python) - 570 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Number of attempts: 11
Missing Library and a Typo - 573 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
  • Number of attempts: 3
Replacing some words - 402 entries

How fast could it be?

  • Best score: 2
  • Best player score: 17
  • Number of attempts: 6
Array transposition - 1241 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 4
From argument to object - 991 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
  • Number of attempts: 13
Double and switch - 35 entries

Aaaanother case switcher

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 5
Song Zheng
Twitter:

finally at Google. It's sexier

entered into 38 challenges

contributed 0 challenges