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 - 32904 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: #394 / 7270
  • Number of attempts: 6
Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #34 / 1241
  • Number of attempts: 9
V to the i - 4639 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1125 / 1856
  • Number of attempts: 2
JS notation to Immutable.js notation - 155 entries

Now Immutable.js made its way into many frontends. This challenge consists of a typical refactoring that many of us are facing now.

  • Best score: 35
  • Best player score: 35
  • Position: #15 / 59
  • Number of attempts: 3
Add to end of each line... kinda - 289 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 12
  • Position: #76 / 156
  • Number of attempts: 4
Vice versa - 7520 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #991 / 2043
  • Number of attempts: 1
Sorting a glossary - 115 entries

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

  • Best score: 6
  • Best player score: 6
  • Position: #38 / 74
  • Number of attempts: 1
comments galore - 970 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #147 / 410
  • Number of attempts: 3
Mirrored text - 162 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 16
  • Position: #41 / 69
  • Number of attempts: 2
Inner hyphens - 122 entries

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

  • Best score: 11
  • Best player score: 13
  • Position: #72 / 76
  • Number of attempts: 1
Scrambled numbers - 772 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 24
  • Position: #107 / 179
  • Number of attempts: 3
Alsa configuration - 481 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 22
  • Position: #24 / 123
  • Number of attempts: 5
ASCII Art - 80 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 15
  • Position: #41 / 50
  • Number of attempts: 1
Fix the XML - 958 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 24
  • Position: #134 / 279
  • Number of attempts: 7
I forgot quotes - 15728 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #376 / 4114
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #933 / 3637
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #651 / 3919
  • Number of attempts: 3
Hole-in-one - 973 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 16
  • Position: #79 / 297
  • Number of attempts: 5
switch variable - 4917 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #407 / 1701
  • Number of attempts: 3
Janko Jerinic
Twitter:

software engineer / amateur photographer

entered into 19 challenges

contributed 0 challenges