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

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

  • Best score: 9
  • Best player score: 11
  • Position: #512 / 1122
  • Number of attempts: 10
Satisfy the go linter - 2485 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: #248 / 495
  • Number of attempts: 7
Simple, Practical, and Common - 33988 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: #3108 / 7509
  • Number of attempts: 7
prepend * to every non-blank line - 6390 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #622 / 1560
  • Number of attempts: 3
One number per line - 18896 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #828 / 3902
  • Number of attempts: 7
V to the i - 4864 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1207 / 1912
  • Number of attempts: 1
Add semicolons - 10954 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1560 / 3097
  • Number of attempts: 4
Box it - 7999 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #779 / 1899
  • Number of attempts: 8
Separating firstname & lastname - 181 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 26
  • Position: #41 / 61
  • Number of attempts: 5
HTML formatting: vertical alignment for readability - 98 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: #33 / 37
  • Number of attempts: 1
Josh Kermond
Twitter:

entered into 10 challenges

contributed 0 challenges