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

Reformat/Refactor a Golfer Class - 5485 entries

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

  • Best score: 32
  • Best player score: 49
  • Number of attempts: 2
Sort and add attributes - 1082 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Number of attempts: 3
Remove noise from HTTP log - 603 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 28
  • Number of attempts: 1
simple format - 2774 entries

make it look better.

  • Best score: 20
  • Best player score: 41
  • Number of attempts: 8
Reconstruct the Sentence - 1024 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 27
  • Number of attempts: 1
Simple, Practical, and Common - 24838 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: 26
  • Number of attempts: 4
Change the content of a string - 1234 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 25
  • Number of attempts: 2
switch variable - 4301 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
V to the i - 3903 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 6
Vice versa - 5903 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 8
Basic renumbering - 4579 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 25
  • Number of attempts: 3
camel riding - 686 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 19
  • Number of attempts: 1
Swap values - 3507 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 6
comments galore - 904 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 2
Vertical Limit - 2106 entries

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

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 1
Simple text editing with Vim - 10385 entries

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

  • Best score: 13
  • Best player score: 19
  • Number of attempts: 2
Extract argument from function - 2000 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 9
The Cake is a Lie - 1119 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Collect List - 3467 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 2
Search and Replace 0 - 4091 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Switch function arguments - 1835 entries

How to switch two arguments of a function.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Swap values inside brackets - 1445 entries

Easy challenge.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 5
Just the middle - 9164 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
Words in parens - 11002 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 3
A Simple One - 840 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: 13
  • Number of attempts: 2
I forgot quotes - 11699 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 3
Applying same text modification in several lines - 1609 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 9
One number per line - 12667 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 2
replacing each line of a block selection - 2508 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 21
  • Number of attempts: 3
faisal
Twitter:

entered into 30 challenges

contributed 0 challenges