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 - 32953 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: #356 / 7275
  • Number of attempts: 8
Every other line - 2829 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #109 / 686
  • Number of attempts: 1
That hyphen - 2500 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Position: #117 / 683
  • Number of attempts: 2
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #586 / 4114
  • Number of attempts: 4
Interweave two blocks of text - 584 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 15
  • Position: #10 / 205
  • Number of attempts: 6
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: 37
  • Position: #24 / 59
  • Number of attempts: 4
Vice versa - 7535 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #150 / 2048
  • Number of attempts: 4
I forgot quotes - 15748 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #364 / 4116
  • Number of attempts: 7
learn vim in short time - 219 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #84 / 150
  • Number of attempts: 2
Change name of a variable - 163 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #97 / 127
  • Number of attempts: 2
A simple change - 401 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 12
  • Position: #30 / 177
  • Number of attempts: 5
Increment, increment, increment.... - 591 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #6 / 378
  • Number of attempts: 3
Simple text editing with Vim - 11657 entries

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

  • Best score: 13
  • Best player score: 24
  • Position: #2889 / 3418
  • Number of attempts: 3
Ralf Haffa
Twitter:

entered into 13 challenges

contributed 0 challenges