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

Printable ASCII characters - 95 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
  • Number of attempts: 1
Not enough Ps - 44 entries

Different type of code

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 2
switch variable - 4069 entries

how fast can you switch two variable ?

  • Best score: 3
  • Best player score: 13
  • Number of attempts: 2
V to the i - 3495 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Words in parens - 10279 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 1
Just the middle - 8425 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Increment, increment, increment.... - 465 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 2
Simple text editing with Vim - 9863 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 2
That hyphen - 1841 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 2
Across-Down Flip - 37 entries

Do this instead of the Sunday crossword.

  • Best score: 24
  • Best player score: 26
  • Number of attempts: 4
swap or reverse - 87 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 1
Remove hard line breaks - 34 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
  • Number of attempts: 1
Mirror Symmetry - 676 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Number of attempts: 1
Extract argument from function - 1791 entries

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

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 2
Space out the alphabet - 1250 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 3
-a-b-c- - 2325 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 1
camel riding - 668 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 7
Generate a list of numbers - 216 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
Vice versa - 5291 entries

Little role switching.

  • Best score: 2
  • Best player score: 16
  • Number of attempts: 1
Shuffled numbers - 195 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
  • Number of attempts: 2
readability - 278 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 2
Simple, Practical, and Common - 20844 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: 6
Fix the XML - 821 entries

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

  • Best score: 18
  • Best player score: 21
  • Number of attempts: 4
Separating firstname & lastname - 96 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 3
David Stensland
Twitter:

entered into 24 challenges

contributed 0 challenges