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

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
  • Number of attempts: 1
prepend * to every non-blank line - 4856 entries

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

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 3
V to the i - 4508 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Separating firstname & lastname - 107 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 26
  • Number of attempts: 5
Add semicolons - 9331 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 4
Rural Post - 2058 entries

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

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 10
One number per line - 17465 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 7
Box it - 7103 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 8
Simple, Practical, and Common - 31709 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
  • Number of attempts: 7
Satisfy the go linter - 1091 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
  • Number of attempts: 7
Josh Kermond
Twitter:

entered into 10 challenges

contributed 0 challenges