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

Text to HTML Table - 130 entries

Turn the plain text table to an HTML table.

  • Best score: 52
  • Best player score: 55
  • Number of attempts: 4
Vim's not included features - 150 entries

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

  • Best score: 23
  • Best player score: 40
  • Number of attempts: 2
Adam's challenge - 647 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
  • Number of attempts: 1
Interweave two blocks of text - 475 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
  • Number of attempts: 1
Vertical Limit - 2052 entries

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

  • Best score: 21
  • Best player score: 24
  • Number of attempts: 3
One number per line - 10902 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 3
Extract HTML option values from tag values - 73 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
  • Number of attempts: 2
Just the middle - 8609 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Simple, Practical, and Common - 21848 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: 2
  • Best player score: 22
  • Number of attempts: 5
Letter case trickery - 1413 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
  • Number of attempts: 6
Collect List - 3211 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
For all cases. - 99 entries

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

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 2
That hyphen - 1870 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 3
Vice versa - 5494 entries

Little role switching.

  • Best score: 2
  • Best player score: 15
  • Number of attempts: 1
I forgot quotes - 10443 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
V to the i - 3609 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
switch variable - 4141 entries

how fast can you switch two variable ?

  • Best score: 3
  • Best player score: 11
  • Number of attempts: 3
Mirror Symmetry - 686 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Number of attempts: 1
Avian Y
Twitter:

entered into 18 challenges

contributed 0 challenges