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

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #391 / 471
  • Number of attempts: 2
simple replacements - 1802 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 23
  • Position: #211 / 390
  • Number of attempts: 4
Modernise code - 1402 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 68
  • Position: #301 / 324
  • Number of attempts: 2
remove lines containing the word "reader" - 3604 entries

easy stuff

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

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

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

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 24
  • Position: #205 / 231
  • Number of attempts: 3
One to Ten - 2227 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 / 677
  • 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 - 2554 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #608 / 758
  • 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 - 1249 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: #375 / 407
  • Number of attempts: 2
A Simple One - 1057 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 / 667
  • Number of attempts: 2
Increment, increment, increment.... - 696 entries

Vim likes macros

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

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 16
  • Position: #517 / 532
  • Number of attempts: 2
Context insensitive completion 0 - 590 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 / 249
  • Number of attempts: 5
Context Insensitive completion 1 - 506 entries

Finish writing this simple Python HTTP server.

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

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #527 / 596
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3763 entries

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

  • Best score: 16
  • Best player score: 35
  • Position: #697 / 807
  • Number of attempts: 2
Flodder-challenge - 1343 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 47
  • Position: #303 / 348
  • Number of attempts: 2
Simple text editing with Vim - 13017 entries

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

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

entered into 20 challenges

contributed 0 challenges