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 - 33621 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: #2109 / 7422
  • Number of attempts: 6
prepend * to every non-blank line - 6312 entries

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

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

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

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

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

  • Best score: 12
  • Best player score: 13
  • Position: #230 / 851
  • Number of attempts: 3
Add semicolons - 10859 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #478 / 3064
  • Number of attempts: 5
Box it - 7905 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #309 / 1876
  • Number of attempts: 7
Every other line - 2910 entries

AaAaAaA

  • Best score: 12
  • Best player score: 12
  • Position: #58 / 703
  • Number of attempts: 6
Delete to the end of the current line - 812 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 / 391
  • Number of attempts: 3
Collect List - 4298 entries

Convert to comma separated list.

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

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1011 / 4181
  • Number of attempts: 8
Words in parens - 12939 entries

We should all ace this, right?

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

entered into 11 challenges

contributed 0 challenges