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

html paragraph to table - 330 entries

reformat html paragraph to table

  • Best score: 7
  • Best player score: 59
  • Number of attempts: 4
Do you demand a shrubbery? - 1008 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5470 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 32
  • Number of attempts: 6
Vertical Limit - 2106 entries

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

  • Best score: 21
  • Best player score: 25
  • Number of attempts: 4
Simple, Practical, and Common - 24475 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: 22
  • Number of attempts: 12
simple format - 2603 entries

make it look better.

  • Best score: 20
  • Best player score: 21
  • Number of attempts: 11
Make Fancy Header - 905 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 6
Saving the hashes(#) - 1732 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: 20
  • Number of attempts: 7
Applying same text modification in several lines - 1558 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
The Quick Brown Fox Jumps Over The Lazy Vim - 325 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
switch variable - 4284 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
V to the i - 3872 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Simple text editing with Vim - 10345 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 6
I forgot quotes - 11590 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 3
Let's play some Ivmgolf - 907 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 5
Switch function arguments - 1830 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
Box it - 2398 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 5
Count both ways - 864 entries

Right AND down.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
Words in parens - 10940 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 3
ninja substitution - 424 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 9
Jonáš Šerých
Twitter:

Skautský vedoucí, student http://t.co/wgx1KvUJT7

entered into 20 challenges

contributed 0 challenges