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 - 4072 entries

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

  • Best score: 9
  • Best player score: 11
  • Position: #439 / 1008
  • Number of attempts: 10
Satisfy the go linter - 1996 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: #201 / 400
  • Number of attempts: 7
Simple, Practical, and Common - 32879 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: #3021 / 7266
  • Number of attempts: 7
prepend * to every non-blank line - 5946 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #584 / 1459
  • Number of attempts: 3
One number per line - 18365 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #797 / 3785
  • Number of attempts: 7
V to the i - 4635 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1178 / 1855
  • Number of attempts: 1
Add semicolons - 10527 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1517 / 2986
  • Number of attempts: 4
Box it - 7678 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #761 / 1834
  • Number of attempts: 8
Separating firstname & lastname - 109 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 26
  • Position: #31 / 51
  • Number of attempts: 5
HTML formatting: vertical alignment for readability - 60 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: 33
  • Best player score: 141
  • Position: #29 / 32
  • Number of attempts: 1
Josh Kermond
Twitter:

entered into 10 challenges

contributed 0 challenges