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

C Reformatting - 640 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 59
  • Number of attempts: 3
PHP Array Syntax -> MailChimp Merge Syntax - 421 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: 52
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9550 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Basic renumbering - 4634 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 19
  • Number of attempts: 1
Pretty multi-line bash - 194 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 33
  • Number of attempts: 1
V to the i - 3952 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Words in parens - 11108 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 6
Split line with dots - 1840 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 21
  • Number of attempts: 1
comments galore - 906 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
Swap values - 3587 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 3
Collect List - 3533 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 2
Simple, Practical, and Common - 25356 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
  • Number of attempts: 11
Antoni Villalonga
Twitter:

About myself in 160 characters or less.

entered into 12 challenges

contributed 0 challenges