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

Rural Post - 4572 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 29
  • Position: #1006 / 1116
  • Number of attempts: 2
Simple, Practical, and Common - 33866 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: 27
  • Position: #4075 / 7474
  • Number of attempts: 2
Swap values - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #829 / 1282
  • Number of attempts: 1
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Position: #1351 / 3889
  • Number of attempts: 4
V to the i - 4830 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #356 / 1903
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 1253 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 33
  • Position: #216 / 261
  • Number of attempts: 2
Bad Copy Syntax - 2055 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 23
  • Position: #354 / 536
  • Number of attempts: 3
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 31
  • Position: #1478 / 1891
  • Number of attempts: 1
From argument to object - 1536 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 23
  • Position: #420 / 466
  • Number of attempts: 2
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #623 / 4230
  • Number of attempts: 2
Align commas - 1097 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 17
  • Position: #162 / 247
  • Number of attempts: 1
Line under headers - 2072 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 38
  • Position: #429 / 510
  • Number of attempts: 1
Array transposition - 2436 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 30
  • Position: #381 / 452
  • Number of attempts: 1
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2742 / 4202
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2492 / 3700
  • Number of attempts: 2
switch variable - 5094 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1246 / 1754
  • Number of attempts: 1
Numbering a List - 1940 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Position: #484 / 656
  • Number of attempts: 1
Simple text editing with Vim - 13262 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2362 / 3810
  • Number of attempts: 2
Daniel Latzer
Twitter:

entered into 18 challenges

contributed 0 challenges