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

Wget failed to download redirections - 185 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.

  • Best score: 15
  • Best player score: 20
  • Position: #36 / 64
  • Number of attempts: 2
V to the i - 4770 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #809 / 1887
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 704 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #200 / 397
  • Number of attempts: 1
Extract argument from function - 2337 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Position: #10 / 750
  • Number of attempts: 1
That hyphen - 2572 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #296 / 698
  • Number of attempts: 3
Just the middle - 11380 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #21 / 4174
  • Number of attempts: 3
Separating firstname & lastname - 121 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 24
  • Position: #26 / 56
  • Number of attempts: 1
Mute the second method of this script - 449 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #9 / 238
  • Number of attempts: 2
Condensed Cases - 794 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 14
  • Position: #112 / 244
  • Number of attempts: 1
Pretty format for variable declarations - 156 entries

Project standards demand the equal signs must be aligned for better readability.

  • Best score: 13
  • Best player score: 17
  • Position: #38 / 63
  • Number of attempts: 1
Happy TvvO - 417 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #17 / 204
  • Number of attempts: 2
Shift down - 194 entries

Number words are back.

  • Best score: 19
  • Best player score: 28
  • Position: #37 / 68
  • Number of attempts: 1
learn vim in short time - 233 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #11 / 159
  • Number of attempts: 1
vim1001 - 283 entries

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

  • Best score: 17
  • Best player score: 23
  • Position: #50 / 108
  • Number of attempts: 2
Roman numerals - 69 entries

Use the substitutions on top to convert unary to Roman numerals.

  • Best score: 17
  • Best player score: 21
  • Position: #16 / 28
  • Number of attempts: 2
-a-b-c- - 3183 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #458 / 1132
  • Number of attempts: 1
Count both ways - 1006 entries

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Position: #93 / 352
  • Number of attempts: 2
Suffix sort - 255 entries

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

  • Best score: 19
  • Best player score: 25
  • Position: #38 / 66
  • Number of attempts: 1
Change name of a variable - 173 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #35 / 136
  • Number of attempts: 1
120 Degrees - 469 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 19
  • Position: #74 / 144
  • Number of attempts: 1
Gray area - 745 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #34 / 270
  • Number of attempts: 2
NBCU Weekly Challenge - #0 - 126 entries

One of our favorites lines here at NBCU! p.s. The first version of #0 was deleted due to me copy/pasting a HTML entity. Congrats to the one who figured that out, you are a true ninja warrior!

  • Best score: 30
  • Best player score: 30
  • Position: #9 / 57
  • Number of attempts: 1
Refactor static member invocation - 199 entries

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

  • Best score: 28
  • Best player score: 30
  • Position: #31 / 64
  • Number of attempts: 1
Comparing scores - 95 entries

If Alice and Bob both did the challenge, put their entries together in the top paragraph, so we can compare their scores more easily.

  • Best score: 18
  • Best player score: 30
  • Position: #19 / 34
  • Number of attempts: 3
Neither Fizz nor Buzz - 235 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 20
  • Position: #55 / 102
  • Number of attempts: 1
Do you demand a shrubbery? - 1136 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 17
  • Position: #100 / 298
  • Number of attempts: 2
Don't know what this is - 1996 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 13
  • Position: #246 / 581
  • Number of attempts: 3
Where should I put the Newline? - 871 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #33 / 435
  • Number of attempts: 2
Shuffle puzzle - 331 entries

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

  • Best score: 13
  • Best player score: 14
  • Position: #29 / 103
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10652 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #297 / 3677
  • Number of attempts: 3
attr_aligner - 3454 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 30
  • Position: #367 / 695
  • Number of attempts: 5
Letter case trickery - 1598 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 11
  • Position: #244 / 514
  • Number of attempts: 2
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1350 / 3950
  • Number of attempts: 1
Recursively Palindrome - 245 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 23
  • Position: #28 / 74
  • Number of attempts: 1
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #322 / 1742
  • Number of attempts: 1
Solve the Sokoban - 165 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 25
  • Position: #3 / 73
  • Number of attempts: 5
Table Reshuffle - 372 entries

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

  • Best score: 22
  • Best player score: 23
  • Position: #23 / 135
  • Number of attempts: 4
Reverse Simple Deletion - 834 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 11
  • Position: #18 / 455
  • Number of attempts: 2
Compile C - 366 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #67 / 133
  • Number of attempts: 1
Reformat most common surnames - 671 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 28
  • Position: #95 / 202
  • Number of attempts: 1
Zapata
Twitter:

life isn't all about open source, but it makes us smarter alltogether :)

entered into 40 challenges

contributed 0 challenges