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 - 32953 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: #3133 / 7275
  • Number of attempts: 7
One number per line - 18395 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Position: #1347 / 3793
  • Number of attempts: 10
Split line with dots - 2103 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 19
  • Position: #332 / 623
  • Number of attempts: 1
Every other line - 2829 entries

AaAaAaA

  • Best score: 12
  • Best player score: 16
  • Position: #363 / 686
  • Number of attempts: 6
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

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

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1233 / 2048
  • Number of attempts: 2
C Reformatting - 686 entries

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

  • Best score: 30
  • Best player score: 57
  • Position: #110 / 159
  • Number of attempts: 1
Cartesian product - 217 entries

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

  • Best score: 24
  • Best player score: 32
  • Position: #35 / 91
  • Number of attempts: 1
I forgot quotes - 15748 entries

Oops.

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

A HAPPY NEW YEAR 2014 !

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

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

  • Best score: 16
  • Best player score: 24
  • Position: #76 / 95
  • Number of attempts: 1
Context insensitive completion 0 - 474 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: 7
  • Best player score: 9
  • Position: #158 / 223
  • Number of attempts: 1
Sort and add attributes - 1207 entries

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

  • Best score: 33
  • Best player score: 36
  • Position: #361 / 489
  • Number of attempts: 2
Simple text editing with Vim - 11657 entries

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

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

entered into 14 challenges

contributed 0 challenges