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 - 33742 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: #589 / 7447
  • Number of attempts: 11
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #688 / 1274
  • Number of attempts: 3
V to the i - 4818 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1185 / 1898
  • Number of attempts: 2
Split line with dots - 2154 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 21
  • Position: #415 / 635
  • Number of attempts: 1
Basic renumbering - 5683 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 19
  • Position: #759 / 1269
  • Number of attempts: 1
Pretty multi-line bash - 235 entries

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

  • Best score: 15
  • Best player score: 33
  • Position: #73 / 77
  • Number of attempts: 1
C Reformatting - 690 entries

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

  • Best score: 30
  • Best player score: 59
  • Position: #116 / 163
  • Number of attempts: 3
comments galore - 1048 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #193 / 425
  • Number of attempts: 1
Collect List - 4308 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 13
  • Position: #567 / 1192
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10688 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2131 / 3691
  • Number of attempts: 2
Words in parens - 12967 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2913 / 3969
  • Number of attempts: 6
PHP Array Syntax -> MailChimp Merge Syntax - 545 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
  • Position: #135 / 150
  • Number of attempts: 1
Antoni Villalonga
Twitter:

About myself in 160 characters or less.

entered into 12 challenges

contributed 0 challenges