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 - 32746 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: 29
  • Position: #4432 / 7235
  • Number of attempts: 1
Just the middle - 11074 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1726 / 4088
  • Number of attempts: 2
Lower cased and dashed strings - 46 entries

As I have to generate big fixtures files, I wanted to find a way to format input data the way described by start and end files. Especially the lower-cased-and-dashed ids Not so good to find a pure Vim way, that's why I submit this challenge ;)

  • Best score: 59
  • Best player score: 101
  • Position: #16 / 18
  • Number of attempts: 3
camel riding - 734 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 18
  • Position: #201 / 263
  • Number of attempts: 1
readability - 298 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Position: #24 / 143
  • Number of attempts: 2
remove all lines in first part - 162 entries

From the second part, remove all lines in the first part. It can be useful when you have done something from a long list, you want to know what is not done yet!

  • Best score: 13
  • Best player score: 20
  • Position: #41 / 57
  • Number of attempts: 1
Fix the XML - 934 entries

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

  • Best score: 18
  • Best player score: 27
  • Position: #191 / 273
  • Number of attempts: 2
Shuffled numbers - 203 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: #51 / 85
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10507 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2670 / 3626
  • Number of attempts: 1
Words in parens - 12678 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1425 / 3904
  • Number of attempts: 2
Increment, increment, increment.... - 531 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #267 / 357
  • Number of attempts: 2
Olivier Debon
Twitter:

entered into 11 challenges

contributed 0 challenges