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

xrandr outputs and dashes - 753 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #27 / 229
  • Number of attempts: 5
Yo To Hello - 1156 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #120 / 537
  • Number of attempts: 3
Simple, Practical, and Common - 34012 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: 28
  • Position: #4266 / 7513
  • Number of attempts: 4
prepend * to every non-blank line - 6395 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #200 / 1562
  • Number of attempts: 3
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1482 / 3098
  • Number of attempts: 8
Extract argument from function - 2427 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #471 / 772
  • Number of attempts: 2
Adam's challenge - 1042 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 21
  • Position: #160 / 281
  • Number of attempts: 3
Paragraph breaks - 550 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 13
  • Position: #138 / 172
  • Number of attempts: 3
comments galore - 1100 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #368 / 433
  • Number of attempts: 2
Align commas - 1134 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 16
  • Position: #140 / 250
  • Number of attempts: 5
I forgot quotes - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #573 / 4224
  • Number of attempts: 5
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2942 / 3991
  • Number of attempts: 2
Append semicolon after expressions - 1086 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #110 / 426
  • Number of attempts: 5
Chicuella
Twitter:

entered into 13 challenges

contributed 0 challenges