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: #594 / 7519
  • Number of attempts: 6
V to the i - 4887 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #211 / 1916
  • Number of attempts: 2
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: 15
  • Position: #448 / 773
  • Number of attempts: 2
Across-Down Flip - 93 entries

Do this instead of the Sunday crossword.

  • Best score: 23
  • Best player score: 26
  • Position: #13 / 29
  • Number of attempts: 4
That hyphen - 2649 entries

"vim vi improved"

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #135 / 4261
  • Number of attempts: 2
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1146 / 2158
  • Number of attempts: 1
Generate a list of numbers - 312 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 14
  • Position: #33 / 144
  • Number of attempts: 3
Separating firstname & lastname - 183 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 22
  • Position: #27 / 63
  • Number of attempts: 3
Mirror Symmetry - 845 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Position: #225 / 273
  • Number of attempts: 1
camel riding - 817 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 15
  • Position: #25 / 285
  • Number of attempts: 7
swap or reverse - 132 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #15 / 72
  • Number of attempts: 1
readability - 342 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Position: #47 / 156
  • Number of attempts: 2
Space out the alphabet - 1699 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 17
  • Position: #170 / 459
  • Number of attempts: 3
Not enough Ps - 76 entries

Different type of code

  • Best score: 13
  • Best player score: 13
  • Position: #14 / 40
  • Number of attempts: 2
Fix the XML - 1052 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #90 / 292
  • Number of attempts: 4
Shuffled numbers - 256 entries

Each number is paired with the number it should follow. That's enough information to put them in order.

  • Best score: 15
  • Best player score: 16
  • Position: #65 / 100
  • Number of attempts: 2
Remove hard line breaks - 89 entries

Text files with Hard breaks are not good for e-readers. We need remove all hard line breaks and have long lines.

  • Best score: 10
  • Best player score: 14
  • Position: #23 / 38
  • Number of attempts: 1
-a-b-c- - 3242 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #572 / 1147
  • Number of attempts: 1
Words in parens - 13058 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #563 / 3993
  • Number of attempts: 1
Printable ASCII characters - 171 entries

From a blank input, print all 95 printing ASCII characters one per line, from space to tilde.

  • Best score: 22
  • Best player score: 42
  • Position: #32 / 47
  • Number of attempts: 1
switch variable - 5131 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1182 / 1766
  • Number of attempts: 2
Increment, increment, increment.... - 710 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #318 / 418
  • Number of attempts: 2
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: #1484 / 3914
  • Number of attempts: 2
David Stensland
Twitter:

entered into 24 challenges

contributed 0 challenges