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 format - 3066 entries

make it look better.

  • Best score: 20
  • Best player score: 46
  • Number of attempts: 5
lamb had a little Mary - 491 entries

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

  • Best score: 16
  • Best player score: 32
  • Number of attempts: 10
Simple, Practical, and Common - 25288 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: 30
  • Number of attempts: 1
Team names - 1463 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 21
  • Number of attempts: 1
Add semicolons - 2050 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 6
remove lines containing the word "reader" - 1720 entries

easy stuff

  • Best score: 9
  • Best player score: 14
  • Number of attempts: 1
The name of the game - 582 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
I forgot quotes - 11947 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
A Simple One - 844 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: 2
Box it - 3173 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 26
  • Number of attempts: 5
Join 'em - 136 entries

This shouldn't be too tough

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 4
Let's play some Ivmgolf - 918 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 3
The Cake is a Lie - 1124 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
V to the i - 3951 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
switch variable - 4316 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 2
Com(m)a Trouble - 1778 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 2
Remember VimGolf Rules ! - 202 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Just the middle - 9314 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 4
Remove noise from HTTP log - 607 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: 15
  • Number of attempts: 1
Reverse Simple Deletion - 713 entries

You did the simple deletion, now reverse it.

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

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
quotes inside quotes - 2793 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: 14
  • Number of attempts: 4
Gray area - 637 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 2
Applying same text modification in several lines - 1706 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 3
Make Fancy Header - 915 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 3
VimGolfNight - 458 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 1
One number per line - 12988 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 2
Graeme Smith
Twitter:

entered into 27 challenges

contributed 0 challenges