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 - 33970 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: 24
  • Position: #2910 / 7503
  • Number of attempts: 3
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #694 / 1291
  • Number of attempts: 2
Copy three lines - 2909 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #310 / 644
  • Number of attempts: 1
Extract argument from function - 2399 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #461 / 767
  • Number of attempts: 1
Search and Replace 0 - 5115 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Position: #1033 / 1667
  • Number of attempts: 1
Pretty multi-line bash - 240 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 25
  • Position: #54 / 78
  • Number of attempts: 1
Paragraph breaks - 533 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 13
  • Position: #102 / 169
  • Number of attempts: 2
A grid of punctuation - 145 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #14 / 63
  • Number of attempts: 2
The name of the game - 682 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #217 / 366
  • Number of attempts: 1
イーサン
Twitter:

UCSD computer science kid

entered into 9 challenges

contributed 0 challenges