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 - 34021 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 / 7517
  • Number of attempts: 6
Swap values - 4707 entries

Well, swap the values...

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

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

  • Best score: 7
  • Best player score: 8
  • Position: #1153 / 1915
  • Number of attempts: 2
JS notation to Immutable.js notation - 196 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: 34
  • Best player score: 35
  • Position: #19 / 65
  • Number of attempts: 3
Add to end of each line... kinda - 351 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 / 181
  • Number of attempts: 4
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #1038 / 2158
  • Number of attempts: 1
Sorting a glossary - 138 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 / 85
  • Number of attempts: 1
comments galore - 1101 entries

Basic comment reformatting

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

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 16
  • Position: #45 / 76
  • Number of attempts: 2
Inner hyphens - 155 entries

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

  • Best score: 11
  • Best player score: 13
  • Position: #83 / 90
  • Number of attempts: 1
Scrambled numbers - 830 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 24
  • Position: #113 / 187
  • Number of attempts: 3
Alsa configuration - 551 entries

I'm tweaking my ~/.asoundrc file!

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

how good are you with simple regex?

  • Best score: 10
  • Best player score: 15
  • Position: #49 / 58
  • Number of attempts: 1
Fix the XML - 1052 entries

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

  • Best score: 18
  • Best player score: 24
  • Position: #142 / 292
  • Number of attempts: 7
I forgot quotes - 16239 entries

Oops.

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

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #676 / 3991
  • Number of attempts: 3
Hole-in-one - 1041 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: #82 / 308
  • Number of attempts: 5
switch variable - 5128 entries

how fast can you switch two variable ?

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

software engineer / amateur photographer

entered into 19 challenges

contributed 0 challenges