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

Increment, increment, increment.... - 507 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 2
Make it more readable - 1797 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 7
Numbering a List - 1760 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 21
  • Number of attempts: 3
Whitespace, empty lines and tabs - 2715 entries

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

  • Best score: 16
  • Best player score: 34
  • Number of attempts: 1
Exchanging Quotes - 776 entries

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

  • Best score: 30
  • Best player score: 37
  • Number of attempts: 1
PHP <--> Java class conversion Part 1 - 178 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 82
  • Number of attempts: 7
PHP <--> Java class conversion Part 2 - 83 entries

Same class but reverse!

  • Best score: 80
  • Best player score: 94
  • Number of attempts: 6
Search and Replace 0 - 4434 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Line Zipper - 401 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 3
The Universal Declaration of Human Rights, Article 1 - 128 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
  • Number of attempts: 8
Change the content of a string - 1265 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 6
Generate English Alphabets - 424 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 26
  • Number of attempts: 2
A Simple One - 852 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
  • Number of attempts: 1
Stanley Wang
Twitter:

Techie in SF

entered into 13 challenges

contributed 0 challenges