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

comments galore - 930 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Swap values - 4287 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
Mess in revision history - 1084 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 29
  • Number of attempts: 3
Mute the second method of this script - 420 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 3
Saving the hashes(#) - 1876 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
Where should I put the Newline? - 830 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Copy three lines - 2615 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
I forgot quotes - 15122 entries

Oops.

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Don't know what this is - 1884 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
Do you demand a shrubbery? - 1049 entries

Use :redir and crush the emacsgolfers.

  • Best score: 8
  • Best player score: 15
  • Number of attempts: 10
Every other line - 2680 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 2
Wrap text in quotes - 315 entries

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

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 4
Simple text editing with Vim - 11191 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
Vertical Limit - 2264 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
V to the i - 4507 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
Scrambled numbers - 764 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 25
  • Number of attempts: 8
Mirror Symmetry - 739 entries

Add backslashes.

  • Best score: 7
  • Best player score: 15
  • Number of attempts: 2
Condensed Cases - 729 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
A HAPPY NEW YEAR 2014 ! - 10330 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Make it more readable - 1818 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
One number per line - 17456 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 1
Split line with dots - 2043 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 3
Collect List - 4035 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 4
remove dupes from array - 1260 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
Vaisian
Twitter:

entered into 25 challenges

contributed 0 challenges