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

Alsa configuration - 471 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 36
  • Number of attempts: 2
Sort and add attributes - 1095 entries

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

  • Best score: 33
  • Best player score: 36
  • Number of attempts: 1
Two become one - 676 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 34
  • Number of attempts: 2
Vertical Limit - 2148 entries

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

  • Best score: 21
  • Best player score: 29
  • Number of attempts: 2
lamb had a little Mary - 491 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 39
  • Number of attempts: 1
Basic renumbering - 4767 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Number of attempts: 2
Space out the alphabet - 1401 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 23
  • Number of attempts: 2
Vice versa - 6132 entries

Little role switching.

  • Best score: 12
  • Best player score: 19
  • Number of attempts: 2
Ruby 1.9 hashes - 1080 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 3
I forgot quotes - 12407 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Number of attempts: 2
-a-b-c- - 2670 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 2
Words in parens - 11265 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 1
A Simple One - 848 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
Replace and keep the case - 347 entries

Replace all instance of plugin and Plugin to device and Device.

  • Best score: 26
  • Best player score: 34
  • Number of attempts: 2
Reverse Simple Deletion - 720 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
NBCU Weekly Challenge - Test - 218 entries

Just testing.

  • Best score: 18
  • Best player score: 19
  • Number of attempts: 3
The name of the game - 586 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 2
Just the middle - 9539 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Number of attempts: 2
Remove noise from HTTP log - 618 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: 17
  • Number of attempts: 3
The meaning - 502 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
quotes inside quotes - 2826 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: 1
comments galore - 910 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 1
Collect List - 3577 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 2
Let's play some Ivmgolf - 926 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 12
  • Number of attempts: 1
The Cake is a Lie - 1136 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 1
Simple text editing with Vim - 10594 entries

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

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
V to the i - 4054 entries

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

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 1
switch variable - 4382 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
Swap assigned value - 499 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 1
Simple, Practical, and Common - 26191 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: 28
  • Number of attempts: 3
Happy TvvO - 354 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • 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: 18
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9653 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
Prefixes and suffixes - 506 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 28
  • Number of attempts: 1
Count both ways - 880 entries

Right AND down.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 2
Where should I put the Newline? - 798 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Append semicolon after expressions - 875 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 1
lipsum lines - 239 entries

Convert a quoted block of text into strings in a list.

  • Best score: 28
  • Best player score: 37
  • Number of attempts: 2
Lisp Condense - 387 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 2
That hyphen - 2236 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Number of attempts: 2
Shebangs for all - 1618 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 16
  • Number of attempts: 2
Extract argument from function - 2037 entries

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

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 2
Don't know what this is - 1787 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
Etienne Tremel
Twitter:

Software Engineer @ Container Solutions

entered into 43 challenges

contributed 0 challenges