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 - 33988 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: 31
  • Position: #5519 / 7509
  • Number of attempts: 1
vim = 22 / 7 - 491 entries

pi square vim

  • Best score: 20
  • Best player score: 20
  • Position: #31 / 136
  • Number of attempts: 9
V to the i - 4864 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #441 / 1912
  • Number of attempts: 2
Start coding format - 161 entries

I used to start coding with following format: int main(){ -(cursor here) }

  • Best score: 22
  • Best player score: 22
  • Position: #23 / 74
  • Number of attempts: 4
That hyphen - 2624 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 23
  • Position: #699 / 708
  • Number of attempts: 1
Just the middle - 11613 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #821 / 4253
  • Number of attempts: 6
replace 2nd column blanks with values in same column if blank - 248 entries

Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.

  • Best score: 15
  • Best player score: 18
  • Position: #64 / 84
  • Number of attempts: 1
Order and join - 1030 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #24 / 264
  • Number of attempts: 5
A grid of punctuation - 145 entries

Create a checkerboard of = and - in an 80×24 grid!

  • Best score: 16
  • Best player score: 16
  • Position: #23 / 63
  • Number of attempts: 3
Maze path - 52 entries

Follow the given motions and mark your path with Xs. Attention: This maze is quite big (20x20), please set your terminal size to at least 82.

  • Best score: 25
  • Best player score: 26
  • Position: #7 / 18
  • Number of attempts: 2
ASCII Art - 90 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 16
  • Position: #52 / 56
  • Number of attempts: 1
Greek Letters - 80 entries

Starting with a list of Greek letters, create a cross-reference table showing all of the Greek alpha-beta. You'll likely need to use digraphs (:help digraphs). Note that while most digraphs can be entered with either character first, lowercase sigma has two digraphs -- s* AND *s! Good luck!

  • Best score: 34
  • Best player score: 1521
  • Position: #27 / 27
  • Number of attempts: 1
learn vim in short time - 246 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #92 / 166
  • Number of attempts: 1
-a-b-c- - 3237 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 33
  • Position: #1133 / 1145
  • Number of attempts: 1
quotes inside quotes - 3200 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 15
  • Position: #476 / 1091
  • Number of attempts: 3
Enharmonic Equivalents - 67 entries

Transform # and b to digraphs

  • Best score: 18
  • Best player score: 19
  • Position: #28 / 39
  • Number of attempts: 1
It'ss tooo coold too typpe todaay - 237 entries

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

  • Best score: 16
  • Best player score: 24
  • Position: #91 / 100
  • Number of attempts: 1
Numbering a List - 1944 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 60
  • Position: #649 / 659
  • Number of attempts: 1
Joaquin Coronel
Twitter:

Just trying to get through life, one step at at a time! Airman in the United States Air Force

entered into 18 challenges

contributed 0 challenges