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

Do you demand a shrubbery? - 1018 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Number of attempts: 1
Swap values - 3684 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 2
comments galore - 910 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 2
Vice versa - 6132 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 6
Make it more readable - 1765 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 1
Stairs Indenting - 360 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 1
Count both ways - 880 entries

Right AND down.

  • Best score: 13
  • Best player score: 19
  • Number of attempts: 1
120 Degrees - 370 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 28
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1305 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 4
Vertical Limit - 2148 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 27
  • Number of attempts: 1
Paragraph breaks - 411 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 13
  • Number of attempts: 3
switch variable - 4382 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
50 factorials mod 97 - 24 entries

List 1! to 50!, but give your answer mod 97.

  • Best score: 28
  • Best player score: 36
  • Number of attempts: 1
Every other line - 2197 entries

AaAaAaA

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 9653 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 3
Search and Replace 0 - 4187 entries

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

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 1
Just the middle - 9539 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
Wrap text in quotes - 297 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 20
  • Number of attempts: 1
I forgot quotes - 12407 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 2
Split line with dots - 1894 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 18
  • Number of attempts: 5
One number per line - 13748 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 6
Fix the XML - 868 entries

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

  • Best score: 18
  • Best player score: 28
  • Number of attempts: 2
Simple, Practical, and Common - 26206 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: 14
  • Best player score: 26
  • Number of attempts: 5
Saving the hashes(#) - 1779 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 29
  • Number of attempts: 2
Daniel Bellenger
Twitter:

entered into 24 challenges

contributed 0 challenges