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 - 32962 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: #194 / 7276
  • Number of attempts: 4
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1059 / 1857
  • Number of attempts: 3
Vice versa - 7536 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #963 / 2049
  • Number of attempts: 2
Manual SQL - 114 entries

Change select and insert queries to simulate inserting a new record.

  • Best score: 49
  • Best player score: 59
  • Position: #18 / 44
  • Number of attempts: 3
Collect List - 4184 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #107 / 1167
  • Number of attempts: 3
VimGolfNight - 505 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #229 / 330
  • Number of attempts: 1
Sorting database text output - 206 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

  • Best score: 24
  • Best player score: 24
  • Position: #32 / 79
  • Number of attempts: 3
Count both ways - 962 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #231 / 342
  • Number of attempts: 1
120 Degrees - 441 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 16
  • Position: #39 / 140
  • Number of attempts: 4
Gray area - 702 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #81 / 260
  • Number of attempts: 2
Mess in revision history - 1143 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 23
  • Position: #136 / 242
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #822 / 3638
  • Number of attempts: 6
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1470 / 3919
  • Number of attempts: 4
Numbering a List - 1832 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #247 / 627
  • Number of attempts: 1
Increment, increment, increment.... - 591 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #295 / 378
  • Number of attempts: 2
Jonas Nockert
Twitter:

Studies math in order to study computer science.

entered into 15 challenges

contributed 0 challenges