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

hello-world-vimgolf - 2185 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #302 / 623
  • Number of attempts: 2
Making 3 line function a one liner. - 295 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #59 / 188
  • Number of attempts: 1
From a Thunderlink to a Markdown link - 738 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 27
  • Position: #138 / 165
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 664 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #331 / 379
  • Number of attempts: 4
Search and Replace 0 - 4768 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #681 / 1580
  • Number of attempts: 4
Swap assigned value - 600 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #99 / 244
  • Number of attempts: 4
Prefixes and suffixes - 591 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 27
  • Position: #111 / 192
  • Number of attempts: 1
abcd > a b c d - 279 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #185 / 217
  • Number of attempts: 1
NATO phonetic alphabet - 498 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 23
  • Position: #138 / 189
  • Number of attempts: 1
A simple change - 434 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 15
  • Position: #146 / 187
  • Number of attempts: 2
SFD-ROC: The Quick Brown Fox - 168 entries

Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.

  • Best score: 24
  • Best player score: 28
  • Position: #75 / 100
  • Number of attempts: 2
Let's play some Ivmgolf - 1068 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 11
  • Position: #370 / 436
  • Number of attempts: 3
Vertical Limit - 2409 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #377 / 730
  • Number of attempts: 4
Make the circuit grid! - 83 entries

Copy this command for a circuit layout program to create 10 total smd commands. Increment the number in quotes to name each pad, and add 0.7 to each of the (X Y) coordinates at the end of each line.

  • Best score: 26
  • Best player score: 26
  • Position: #27 / 46
  • Number of attempts: 2
replacing each line of a block selection - 2912 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 20
  • Position: #285 / 761
  • Number of attempts: 6
Append semicolon after expressions - 995 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #248 / 399
  • Number of attempts: 1
Remove semicolons after expressions - 607 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 9
  • Position: #232 / 254
  • Number of attempts: 2
switch variable - 5013 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #645 / 1728
  • Number of attempts: 3
The meaning - 548 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #299 / 351
  • Number of attempts: 1
Sort the cardinal numbers - 288 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 12
  • Position: #53 / 145
  • Number of attempts: 7
Make it more readable - 1940 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #105 / 637
  • Number of attempts: 5
PHP Array Syntax -> MailChimp Merge Syntax - 506 entries

I recently needed to send an e-mail to our marketing department listing allowed merge tags for our MailChimp campaigns. The allowed merge tags were determined from a PHP array in one of our PHP classes. I transformed the PHP class to MailChimp's syntax and sent the e-mail. It was, however, a long, laborious process. I'm still fairly new to Vim and would love to see how an expert Vim user would tackle one of my own, real-world problems. Thanks and have fun!

  • Best score: 23
  • Best player score: 46
  • Position: #120 / 147
  • Number of attempts: 1
Insert a Markdown link - 429 entries

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

  • Best score: 22
  • Best player score: 24
  • Position: #65 / 143
  • Number of attempts: 3
Ruby 1.9 hashes - 1203 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: 12
  • Position: #101 / 395
  • Number of attempts: 5
A Simple One - 990 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: #522 / 639
  • Number of attempts: 1
Ruby 1.9 compat - 608 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 14
  • Position: #65 / 229
  • Number of attempts: 4
Reverse Simple Deletion - 825 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #354 / 451
  • Number of attempts: 1
Increment, increment, increment.... - 639 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #39 / 397
  • Number of attempts: 2
Context Insensitive completion 1 - 451 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #145 / 229
  • Number of attempts: 3
Make Fancy Header - 998 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Position: #120 / 336
  • Number of attempts: 6
Reformat some Python - 577 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 34
  • Position: #40 / 228
  • Number of attempts: 4
Sort and add attributes - 1287 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 34
  • Position: #343 / 515
  • Number of attempts: 4
Salvador Tojo Quintela
Twitter:

entered into 32 challenges

contributed 0 challenges