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

Search and Replace 0 - 4651 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #131 / 1541
  • Number of attempts: 4
Exchanging Quotes - 791 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 37
  • Position: #118 / 218
  • Number of attempts: 1
PHP <--> Java class conversion Part 1 - 188 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 82
  • Position: #17 / 60
  • Number of attempts: 7
Make it more readable - 1891 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Position: #129 / 622
  • Number of attempts: 7
Line Zipper - 443 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 14
  • Position: #68 / 206
  • Number of attempts: 3
PHP <--> Java class conversion Part 2 - 84 entries

Same class but reverse!

  • Best score: 80
  • Best player score: 94
  • Position: #9 / 36
  • Number of attempts: 6
Generate English Alphabets - 438 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 26
  • Position: #150 / 194
  • Number of attempts: 2
Numbering a List - 1828 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 21
  • Position: #351 / 625
  • Number of attempts: 3
The Universal Declaration of Human Rights, Article 1 - 141 entries

Somebody's got this slightly muddled up. See how quickly you can fix it. (I made this to experiment with buffers. I'm not actually sure whether this is faster with buffers or without.)

  • Best score: 24
  • Best player score: 25
  • Position: #26 / 67
  • Number of attempts: 8
A Simple One - 916 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #220 / 610
  • Number of attempts: 1
Increment, increment, increment.... - 567 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #181 / 370
  • Number of attempts: 2
Change the content of a string - 1346 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #56 / 520
  • Number of attempts: 6
Whitespace, empty lines and tabs - 2979 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 34
  • Position: #549 / 663
  • Number of attempts: 1
Stanley Wang
Twitter:

Techie in SF

entered into 13 challenges

contributed 0 challenges