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

Simple, Practical, and Common - 32962 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: 22
  • Position: #2110 / 7276
  • Number of attempts: 6
prepend * to every non-blank line - 5977 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #97 / 1468
  • Number of attempts: 7
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #714 / 1857
  • Number of attempts: 2
Applying same text modification in several lines - 2751 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 13
  • Position: #217 / 815
  • Number of attempts: 3
Add semicolons - 10545 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #479 / 2989
  • Number of attempts: 5
Box it - 7682 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #310 / 1836
  • Number of attempts: 7
Every other line - 2829 entries

AaAaAaA

  • Best score: 12
  • Best player score: 12
  • Position: #58 / 686
  • Number of attempts: 6
Delete to the end of the current line - 713 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Position: #215 / 349
  • Number of attempts: 3
Collect List - 4184 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #467 / 1167
  • Number of attempts: 2
I forgot quotes - 15748 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1012 / 4116
  • Number of attempts: 8
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1074 / 3919
  • Number of attempts: 4
Sikker Rosendal
Twitter:

entered into 11 challenges

contributed 0 challenges