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: 25
  • Position: #3210 / 7447
  • Number of attempts: 7
One number per line - 18776 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Position: #1379 / 3875
  • Number of attempts: 10
Split line with dots - 2154 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 19
  • Position: #335 / 635
  • Number of attempts: 1
Every other line - 2916 entries

AaAaAaA

  • Best score: 12
  • Best player score: 16
  • Position: #373 / 705
  • Number of attempts: 6
Just the middle - 11495 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #696 / 4213
  • Number of attempts: 2
Vice versa - 7953 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1278 / 2140
  • Number of attempts: 2
C Reformatting - 690 entries

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

  • Best score: 30
  • Best player score: 57
  • Position: #112 / 163
  • Number of attempts: 1
Cartesian product - 259 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 32
  • Position: #38 / 97
  • Number of attempts: 1
I forgot quotes - 16038 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #491 / 4192
  • Number of attempts: 6
A HAPPY NEW YEAR 2014 ! - 10688 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1036 / 3691
  • Number of attempts: 4
It'ss tooo coold too typpe todaay - 230 entries

My hands are numb with cold. It's hard to type correctly.

  • Best score: 16
  • Best player score: 24
  • Position: #80 / 99
  • Number of attempts: 1
Context insensitive completion 0 - 590 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 9
  • Position: #181 / 249
  • Number of attempts: 1
Sort and add attributes - 1480 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 36
  • Position: #430 / 576
  • Number of attempts: 2
Simple text editing with Vim - 13017 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #804 / 3745
  • Number of attempts: 3
Ashish Narasimham
Twitter:

entered into 14 challenges

contributed 0 challenges