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 - 1472 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #398 / 480
  • Number of attempts: 2
simple replacements - 1861 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 23
  • Position: #215 / 399
  • Number of attempts: 4
Modernise code - 1434 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 68
  • Position: #306 / 331
  • Number of attempts: 2
remove lines containing the word "reader" - 3631 entries

easy stuff

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

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

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

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 24
  • Position: #208 / 234
  • Number of attempts: 3
One to Ten - 2243 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 / 683
  • Number of attempts: 4
unknown command - 175 entries

I want change 5 words

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

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

  • Best score: 21
  • Best player score: 28
  • Position: #617 / 772
  • Number of attempts: 2
Generate English Alphabets - 509 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 42
  • Position: #191 / 212
  • Number of attempts: 2
Ruby 1.9 hashes - 1277 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: #381 / 413
  • Number of attempts: 2
A Simple One - 1070 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 / 673
  • Number of attempts: 2
Increment, increment, increment.... - 703 entries

Vim likes macros

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

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 16
  • Position: #523 / 538
  • Number of attempts: 2
Context insensitive completion 0 - 594 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 / 251
  • Number of attempts: 5
Context Insensitive completion 1 - 512 entries

Finish writing this simple Python HTTP server.

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

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #564 / 639
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3949 entries

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

  • Best score: 16
  • Best player score: 35
  • Position: #724 / 841
  • Number of attempts: 2
Flodder-challenge - 1443 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 47
  • Position: #321 / 369
  • Number of attempts: 2
Simple text editing with Vim - 13419 entries

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

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

entered into 20 challenges

contributed 0 challenges