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

Simple, Practical, and Common - 32741 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #835 / 7234
  • Number of attempts: 12
prepend * to every non-blank line - 5776 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 11
  • Position: #548 / 1421
  • Number of attempts: 5
One number per line - 18223 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Position: #1425 / 3759
  • Number of attempts: 8
Swap values inside brackets - 2404 entries

Easy challenge.

  • Best score: 14
  • Best player score: 21
  • Position: #401 / 555
  • Number of attempts: 2
Applying same text modification in several lines - 2699 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 14
  • Position: #263 / 803
  • Number of attempts: 7
Add semicolons - 10429 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #575 / 2954
  • Number of attempts: 6
Com(m)a Trouble - 3284 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 14
  • Position: #307 / 741
  • Number of attempts: 9
Format java properties - 64 entries

Format java properties to a different format. The value which is the string following the first '=' cannot & should not change. All periods in the key get replaced with an underscore "_" and get a prefix of "b_".

  • Best score: 27
  • Best player score: 44
  • Position: #28 / 29
  • Number of attempts: 3
Fiddle percentages into real numbers - 789 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 14
  • Position: #158 / 267
  • Number of attempts: 6
Combines all items - 263 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Position: #52 / 120
  • Number of attempts: 2
I forgot quotes - 15636 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2210 / 4094
  • Number of attempts: 1
Readable Rubyhash - 233 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: 23
  • Best player score: 31
  • Position: #69 / 85
  • Number of attempts: 2
Reuben Narkwo
Twitter:

entered into 12 challenges

contributed 0 challenges