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 - 32910 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: #782 / 7271
  • Number of attempts: 5
One number per line - 18378 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1094 / 3788
  • Number of attempts: 3
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1217 / 1857
  • Number of attempts: 2
That hyphen - 2498 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Position: #160 / 683
  • Number of attempts: 3
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2328 / 4112
  • Number of attempts: 1
Extract HTML option values from tag values - 78 entries

Generate HTML option values from the text in the option tag. If the text contains multiple words, replace the spaces with an underscore and convert all capital letters to small letters.

  • Best score: 34
  • Best player score: 38
  • Position: #24 / 36
  • Number of attempts: 2
Interweave two blocks of text - 574 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: 25
  • Position: #191 / 204
  • Number of attempts: 1
Text to HTML Table - 157 entries

Turn the plain text table to an HTML table.

  • Best score: 52
  • Best player score: 55
  • Position: #26 / 46
  • Number of attempts: 4
For all cases. - 127 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #36 / 91
  • Number of attempts: 2
Adam's challenge - 916 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 25
  • Position: #221 / 257
  • Number of attempts: 1
Vice versa - 7522 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #1018 / 2044
  • Number of attempts: 1
Vim's not included features - 178 entries

Filter not included (-) features in a hypothetical installation of vim.

  • Best score: 23
  • Best player score: 40
  • Position: #52 / 59
  • Number of attempts: 2
Mirror Symmetry - 781 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Position: #238 / 262
  • Number of attempts: 1
Collect List - 4178 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #309 / 1166
  • Number of attempts: 6
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #529 / 4115
  • Number of attempts: 6
Letter case trickery - 1547 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: #12 / 498
  • Number of attempts: 6
Vertical Limit - 2367 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 24
  • Position: #280 / 716
  • Number of attempts: 3
switch variable - 4917 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #475 / 1701
  • Number of attempts: 3
Avian Y
Twitter:

entered into 18 challenges

contributed 0 challenges