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 - 32758 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: #1426 / 7239
  • Number of attempts: 12
Swap values - 4401 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #446 / 1233
  • Number of attempts: 8
One number per line - 18278 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #854 / 3768
  • Number of attempts: 14
Swap values inside brackets - 2404 entries

Easy challenge.

  • Best score: 14
  • Best player score: 15
  • Position: #112 / 555
  • Number of attempts: 6
From argument to object - 1250 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: 17
  • Position: #99 / 412
  • Number of attempts: 12
Just the middle - 11080 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1138 / 4091
  • Number of attempts: 3
Team names - 1759 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #169 / 565
  • Number of attempts: 5
Basic renumbering - 5405 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 39
  • Position: #1201 / 1220
  • Number of attempts: 1
Create Leading Zeros - 204 entries

Create leading zeros only for id columns. Please use generic approach!

  • Best score: 23
  • Best player score: 63
  • Position: #70 / 76
  • Number of attempts: 4
Vice versa - 7434 entries

Little role switching.

  • Best score: 12
  • Best player score: 27
  • Position: #1930 / 2016
  • Number of attempts: 3
convert yml into java pojo field - 800 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 40
  • Position: #195 / 212
  • Number of attempts: 1
Collect List - 4149 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #380 / 1160
  • Number of attempts: 14
remove all lines in first part - 162 entries

From the second part, remove all lines in the first part. It can be useful when you have done something from a long list, you want to know what is not done yet!

  • Best score: 13
  • Best player score: 14
  • Position: #8 / 57
  • Number of attempts: 9
Square numbers - 81 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 38
  • Position: #29 / 34
  • Number of attempts: 4
I forgot quotes - 15656 entries

Oops.

  • Best score: 10
  • Best player score: 11
  • Position: #1142 / 4097
  • Number of attempts: 8
A HAPPY NEW YEAR 2014 ! - 10511 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1286 / 3628
  • Number of attempts: 6
Letter case trickery - 1517 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 9
  • Position: #22 / 493
  • Number of attempts: 11
Words in parens - 12682 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #890 / 3905
  • Number of attempts: 11
It'ss tooo coold too typpe todaay - 203 entries

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

  • Best score: 16
  • Best player score: 21
  • Position: #40 / 91
  • Number of attempts: 3
Simple text editing with Vim - 11391 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1611 / 3347
  • Number of attempts: 5
Simon Ingelsson
Twitter:

Systems Administrator working in Stockholm Sweden.

entered into 20 challenges

contributed 0 challenges