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

Mess in revision history - 936 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 29
  • Number of attempts: 3
Scrambled numbers - 704 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 25
  • Number of attempts: 8
remove dupes from array - 1179 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 25
  • Number of attempts: 1
Make it more readable - 1719 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
Condensed Cases - 670 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: 13
  • Number of attempts: 3
Swap values - 3313 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
comments galore - 883 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Mute the second method of this script - 404 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 3
Vertical Limit - 2063 entries

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

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 6
Where should I put the Newline? - 785 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Simple text editing with Vim - 10132 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 3
V to the i - 3693 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 9280 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Copy three lines - 1871 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 4
Do you demand a shrubbery? - 988 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 10
Don't know what this is - 1669 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: 15
  • Number of attempts: 1
Collect List - 3303 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 4
One number per line - 11399 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 1
Mirror Symmetry - 686 entries

Add backslashes.

  • Best score: 7
  • Best player score: 15
  • Number of attempts: 2
Split line with dots - 1747 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 3
I forgot quotes - 10876 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 3
Just the middle - 8773 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Wrap text in quotes - 276 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 4
Every other line - 1937 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 2
Saving the hashes(#) - 1688 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 8
Vaisian
Twitter:

entered into 25 challenges

contributed 0 challenges