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

Simple, Practical, and Common - 34033 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: #723 / 7519
  • Number of attempts: 9
Swap values - 4707 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #428 / 1294
  • Number of attempts: 5
One number per line - 18911 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #191 / 3907
  • Number of attempts: 7
V to the i - 4887 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #490 / 1916
  • Number of attempts: 3
Split line with dots - 2175 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 19
  • Position: #343 / 639
  • Number of attempts: 1
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1129 / 1901
  • Number of attempts: 2
Every other line - 2951 entries

AaAaAaA

  • Best score: 12
  • Best player score: 15
  • Position: #338 / 712
  • Number of attempts: 3
Copy three lines - 2924 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 13
  • Position: #65 / 647
  • Number of attempts: 5
Extract argument from function - 2429 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 16
  • Position: #548 / 773
  • Number of attempts: 2
That hyphen - 2649 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Position: #144 / 712
  • Number of attempts: 2
Just the middle - 11630 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2408 / 4261
  • Number of attempts: 4
Make HTML List - 1072 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 43
  • Position: #120 / 276
  • Number of attempts: 1
Basic renumbering - 5737 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #69 / 1281
  • 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: 14
  • Position: #176 / 297
  • Number of attempts: 2
Nesting SASS - 302 entries

Move a block inside another block and indent it

  • Best score: 9
  • Best player score: 9
  • Position: #23 / 102
  • Number of attempts: 3
Combines all items - 322 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Position: #11 / 143
  • Number of attempts: 2
Wrap text in quotes - 378 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 20
  • Position: #102 / 124
  • Number of attempts: 1
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #264 / 2158
  • Number of attempts: 6
7th Birthday - 237 entries

We have a bunch of numbers written from 0 to 9 in the order present in the text input file. The task is to create 7 by replacing the numbers with dashes.

  • Best score: 19
  • Best player score: 23
  • Position: #45 / 80
  • Number of attempts: 2
Paragraph sort - 479 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 18
  • Position: #91 / 128
  • Number of attempts: 2
Order and join - 1032 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #34 / 265
  • Number of attempts: 5
Paragraph breaks - 550 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 13
  • Position: #128 / 172
  • Number of attempts: 1
Scrambled numbers - 830 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 18
  • Position: #17 / 187
  • Number of attempts: 5
Alsa configuration - 551 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 25
  • Position: #72 / 132
  • Number of attempts: 2
A grid of punctuation - 156 entries

Create a checkerboard of = and - in an 80×24 grid!

  • Best score: 16
  • Best player score: 20
  • Position: #52 / 65
  • Number of attempts: 1
Collect List - 4342 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #306 / 1200
  • Number of attempts: 3
camel riding - 817 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Position: #133 / 285
  • Number of attempts: 2
Space out the alphabet - 1699 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 21
  • Position: #291 / 459
  • Number of attempts: 3
Fix the XML - 1052 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 23
  • Position: #110 / 292
  • Number of attempts: 4
I forgot quotes - 16240 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2570 / 4226
  • Number of attempts: 2
Count both ways - 1053 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #265 / 362
  • Number of attempts: 2
Do you demand a shrubbery? - 1208 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 16
  • Position: #91 / 310
  • Number of attempts: 7
Don't know what this is - 2070 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 14
  • Position: #366 / 596
  • Number of attempts: 3
Where should I put the Newline? - 912 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #387 / 451
  • Number of attempts: 1
Words in parens - 13058 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2391 / 3993
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1643 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 13
  • Position: #315 / 458
  • Number of attempts: 1
Vertical Limit - 2641 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #169 / 780
  • Number of attempts: 3
Switch function arguments - 2237 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #298 / 687
  • Number of attempts: 4
switch variable - 5131 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #917 / 1766
  • Number of attempts: 2
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #493 / 659
  • Number of attempts: 1
Generate English Alphabets - 540 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 24
  • Position: #70 / 216
  • Number of attempts: 1
Simple text editing with Vim - 13667 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1608 / 3914
  • Number of attempts: 7
Reformat/Refactor a Golfer Class - 7729 entries

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

  • Best score: 7
  • Best player score: 39
  • Position: #802 / 1898
  • Number of attempts: 4
BlackCap
Twitter:

entered into 43 challenges

contributed 0 challenges