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

Many duplicates - 1445 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #390 / 468
  • Number of attempts: 2
simple replacements - 1753 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 23
  • Position: #208 / 380
  • Number of attempts: 4
Modernise code - 1400 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 68
  • Position: #300 / 323
  • Number of attempts: 2
remove lines containing the word "reader" - 3586 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #500 / 1162
  • Number of attempts: 4
Wrap the text of an email message to 79 characters - 766 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #297 / 410
  • Number of attempts: 1
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 24
  • Position: #204 / 230
  • Number of attempts: 3
One to Ten - 2219 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Position: #363 / 672
  • Number of attempts: 4
unknown command - 167 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #69 / 87
  • Number of attempts: 4
Vertical Limit - 2538 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #606 / 754
  • Number of attempts: 2
Generate English Alphabets - 487 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 42
  • Position: #186 / 206
  • Number of attempts: 2
Ruby 1.9 hashes - 1244 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: 20
  • Position: #374 / 406
  • Number of attempts: 2
A Simple One - 1050 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
  • Position: #569 / 664
  • Number of attempts: 2
Increment, increment, increment.... - 688 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #67 / 408
  • Number of attempts: 6
The Cake is a Lie - 1346 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 16
  • Position: #512 / 527
  • Number of attempts: 2
Context insensitive completion 0 - 577 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 7
  • Position: #122 / 246
  • Number of attempts: 5
Context Insensitive completion 1 - 498 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #157 / 245
  • Number of attempts: 1
Change the content of a string - 1580 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #521 / 588
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3670 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 35
  • Position: #682 / 788
  • Number of attempts: 2
Flodder-challenge - 1263 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 47
  • Position: #294 / 336
  • Number of attempts: 2
Simple text editing with Vim - 12815 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #2130 / 3696
  • Number of attempts: 4
Yash Kulshrestha
Github:

entered into 20 challenges

contributed 0 challenges