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

That hyphen - 2393 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 19
  • Number of attempts: 1
Extract argument from function - 2134 entries

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

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 4
Saving the hashes(#) - 1876 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: 1
Reformat/Refactor a Golfer Class - 5694 entries

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

  • Best score: 32
  • Best player score: 38
  • Number of attempts: 3
Words in parens - 12094 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 4
Count both ways - 918 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
Vice versa - 6936 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 2
Simple, Practical, and Common - 30439 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: 23
  • Number of attempts: 3
One number per line - 16700 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 30
  • Number of attempts: 1
Fiddle percentages into real numbers - 762 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10151 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
V to the i - 4385 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
quotes inside quotes - 2946 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 3
Pretty format for variable declarations - 129 entries

Project standards demand the equal signs must be aligned for better readability.

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 1
Gray area - 669 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 4
Basic renumbering - 5167 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 21
  • Number of attempts: 1
underscore_to_camelCase - 141 entries

Pointy haired boss decided we need to switch to camelCase. Let's get this over with.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 1
I forgot quotes - 14515 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 5
Don't know what this is - 1872 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 16
  • Number of attempts: 1
Rao Zvorovski
Twitter:

I am a programmer and a security researcher.

entered into 19 challenges

contributed 0 challenges