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

Rural Post - 4547 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 11
  • Position: #503 / 1109
  • Number of attempts: 10
Satisfy the go linter - 2437 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 24
  • Position: #241 / 481
  • Number of attempts: 7
Simple, Practical, and Common - 33742 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: 24
  • Position: #3090 / 7447
  • Number of attempts: 7
prepend * to every non-blank line - 6352 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 11
  • Position: #618 / 1548
  • Number of attempts: 3
One number per line - 18776 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #824 / 3875
  • Number of attempts: 7
V to the i - 4818 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1200 / 1898
  • Number of attempts: 1
Add semicolons - 10887 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1550 / 3074
  • Number of attempts: 4
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #774 / 1881
  • Number of attempts: 8
Separating firstname & lastname - 138 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 26
  • Position: #37 / 57
  • Number of attempts: 5
HTML formatting: vertical alignment for readability - 88 entries

We did this a VimGolf challenge at work and now that we have finished I want to see if you guys can come up with something even better than we could. Our best solution was 44 keystrokes.

  • Best score: 32
  • Best player score: 141
  • Position: #32 / 36
  • Number of attempts: 1
Josh Kermond
Twitter:

entered into 10 challenges

contributed 0 challenges