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

Simple, Practical, and Common - 34033 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: 35
  • Position: #6616 / 7519
  • Number of attempts: 3
One number per line - 18911 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Position: #3228 / 3907
  • Number of attempts: 1
V to the i - 4887 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #1725 / 1916
  • Number of attempts: 2
Copy three lines - 2924 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 25
  • Position: #564 / 647
  • Number of attempts: 1
Extract argument from function - 2429 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #679 / 773
  • Number of attempts: 2
Search and Replace 0 - 5167 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #1262 / 1677
  • Number of attempts: 3
Number Sort - 328 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #35 / 173
  • Number of attempts: 2
Just the middle - 11630 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 12
  • Position: #4080 / 4261
  • Number of attempts: 1
Team names - 1861 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 23
  • Position: #549 / 596
  • Number of attempts: 3
Make HTML List - 1072 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 60
  • Position: #261 / 276
  • Number of attempts: 1
Remember VimGolf Rules ! - 279 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 9
  • Position: #141 / 149
  • Number of attempts: 2
Order and join - 1032 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 14
  • Position: #220 / 265
  • Number of attempts: 6
comments galore - 1101 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 19
  • Position: #416 / 433
  • Number of attempts: 3
Scrambled numbers - 830 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 37
  • Position: #172 / 187
  • Number of attempts: 1
Collect List - 4342 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 23
  • Position: #1156 / 1200
  • Number of attempts: 1
I forgot quotes - 16240 entries

Oops.

  • Best score: 10
  • Best player score: 19
  • Position: #3534 / 4226
  • Number of attempts: 3
Count both ways - 1053 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #275 / 362
  • Number of attempts: 3
Gray area - 765 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Position: #238 / 277
  • Number of attempts: 4
Don't know what this is - 2070 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
  • Position: #534 / 596
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 17
  • Position: #3424 / 3717
  • Number of attempts: 1
Groups magic - 175 entries

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

  • Best score: 12
  • Best player score: 17
  • Position: #97 / 102
  • Number of attempts: 2
The name of the game - 704 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 12
  • Position: #325 / 372
  • Number of attempts: 1
Let's play some Ivmgolf - 1166 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 14
  • Position: #442 / 461
  • Number of attempts: 1
Vertical Limit - 2641 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #658 / 780
  • Number of attempts: 3
switch variable - 5131 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1227 / 1766
  • Number of attempts: 6
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 19
  • Position: #582 / 659
  • Number of attempts: 7
The holy-grail may help - 408 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 17
  • Position: #193 / 222
  • Number of attempts: 2
Ruby 1.9 hashes - 1315 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: 19
  • Position: #369 / 421
  • Number of attempts: 2
Change the content of a string - 1807 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 28
  • Position: #562 / 658
  • Number of attempts: 1
Simple text editing with Vim - 13667 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #2782 / 3914
  • Number of attempts: 5
z0c
Twitter:

automation churner; very focused on making things not happen at the moment

entered into 30 challenges

contributed 0 challenges