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

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #395 / 476
  • Number of attempts: 2
simple replacements - 1829 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 23
  • Position: #214 / 394
  • Number of attempts: 4
Modernise code - 1410 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 68
  • Position: #302 / 326
  • Number of attempts: 2
remove lines containing the word "reader" - 3614 entries

easy stuff

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

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

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

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 24
  • Position: #206 / 232
  • Number of attempts: 3
One to Ten - 2240 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 / 681
  • Number of attempts: 4
unknown command - 169 entries

I want change 5 words

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

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

  • Best score: 21
  • Best player score: 28
  • Position: #611 / 761
  • Number of attempts: 2
Generate English Alphabets - 502 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 42
  • Position: #189 / 209
  • Number of attempts: 2
Ruby 1.9 hashes - 1260 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: #378 / 410
  • Number of attempts: 2
A Simple One - 1064 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 / 670
  • Number of attempts: 2
Increment, increment, increment.... - 701 entries

Vim likes macros

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

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 16
  • Position: #519 / 534
  • 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 - 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 - 1675 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #544 / 616
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3795 entries

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

  • Best score: 16
  • Best player score: 35
  • Position: #701 / 816
  • Number of attempts: 2
Flodder-challenge - 1376 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 47
  • Position: #308 / 354
  • Number of attempts: 2
Simple text editing with Vim - 13145 entries

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

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

entered into 20 challenges

contributed 0 challenges