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]

25052 active golfers, 278076 entries, 436 challenges

Open VimGolf challenges

For all cases. - 104 entries

In this case... change it! :) Watch the line.

Sort files from hosts - 129 entries

Resume files by host. I hope you enjoy with this challenge

Indentation - 416 entries

Indent each line according to the right number of spaces it needs.

Line Zipper - 396 entries

Zip/pair related lines.

vim1001 - 235 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

The Quick Brown Fox Jumps Over The Lazy Vim - 330 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

Subnetting - 65 entries

Split up the IP addresses in the right way.

Generate English Alphabets - 400 entries

Start with a, get up to z.

Shuffled numbers - 199 entries

Each number is paired with the number it should follow. That's enough information to put them in order.

Case preserving word replacement - 385 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

you're stuck on jQuery < 1.7 - 317 entries

replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`

Context Insensitive completion 1 - 394 entries

Finish writing this simple Python HTTP server.

Mirrored text - 153 entries

backward and forward, and long enough to be challenging

Insert a Markdown link - 385 entries

Put a link in a markdown document, using the after-the-paragraph format.

FoodCritic023: Prefer conditional attributes - 161 entries

FoodCritic (www.foodcritic.io) is a lint tool for your Chef (learn.chef.io) cookbooks. FC023 indicates that you should prefer Chef guards over Ruby conditions. This challenge expects you to be able to fix this issue in a sample cookbook, given the FoodCritic output: ================================================================ FC023: Prefer conditional attributes: cookbooks/foo/recipes/default.rb:25 ================================================================ See http://www.foodcritic.io/#FC023 for more details about the changes being made.

Reverse and count - 379 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

NBCU Weekly Challenge - Test - 215 entries

Just testing.

Start coding format - 119 entries

I used to start coding with following format: int main(){ -(cursor here) }

Hatsuyume - 365 entries

http://en.wikipedia.org/wiki/Hatsuyume

Sorting database text output - 188 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

Rotating Philosophers Problem - 358 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

underscore_to_camelCase - 137 entries

Pointy haired boss decided we need to switch to camelCase. Let's get this over with.

JS notation to Immutable.js notation - 143 entries

Now Immutable.js made its way into many frontends. This challenge consists of a typical refactoring that many of us are facing now.

Vim's not included features - 157 entries

Filter not included (-) features in a hypothetical installation of vim.

Sort the VimGolf challenges by popularity - 257 entries

"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!

Sort entries based on date - 304 entries

Sort some entries in a Ledger-file based on date.

learn vim in short time - 186 entries

so happy to learn vim.because vim is awesome

Change your calendar - 255 entries

Happy New Year!

Array of characters - 114 entries

We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.

Table Reshuffle - 325 entries

Fix the column order in this table... also append the new 'username' column.

Neither Fizz nor Buzz - 191 entries

Not your regular increment macro! The gaps are tricky.

A grid of punctuation - 112 entries

Create a checkerboard of = and - in an 80×24 grid!

Restore order to the alphabet - 153 entries

The numbers are OK. The letters are wonky.

Refactor static member invocation - 180 entries

Someone used a static method. Refactor the method into a static import while fixing the assertion.

Reformat long lines - 316 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

Get rid of html tags - 315 entries

Want to read more about Vim's background? Then get rid of those html tags...

abcd > a b c d - 241 entries

transform the single spaces into 4 spaces repeat for each line

Shift down - 168 entries

Number words are back.

The holy-grail may help - 301 entries

Can you find it in less than 20 strokes, Arthur?

remove all lines in first part - 149 entries

From the second part, remove all lines in the first part. It can be useful when you have done something from a long list, you want to know what is not done yet!

Readable Rubyhash - 232 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!

Wget failed to download redirections - 158 entries

Output of a wget session, where 302 where not properly handled due to certificate problems, has been saved to a file. Keep the correct URLs to start again downloading.

Change attribute to getter - 87 entries

Wrap attributes with a getter method.

Enumerate words - 223 entries

Enumerate the unique words in order.

Suffix sort - 166 entries

Sort from the end of the line, as if the letters in each line were reversed.

Free hyphen! - 112 entries

Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?

Create Leading Zeros - 192 entries

Create leading zeros only for id columns. Please use generic approach!

Inner hyphens - 111 entries

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

Number an outline - 199 entries

The indent and words are right, but the numbers are all wrong.

Compile C - 278 entries

You might have to get clever to do this one.

VimGolf Chatter