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 - 34031 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 / 7520
  • Number of attempts: 6
prepend * to every non-blank line - 6401 entries

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

  • Best score: 7
  • Best player score: 10
  • Position: #98 / 1566
  • Number of attempts: 7
V to the i - 4890 entries

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

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

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

  • Best score: 7
  • Best player score: 13
  • Position: #234 / 869
  • Number of attempts: 3
Add semicolons - 10966 entries

Simply add a semicolon at the end of each line

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

Create a box around a line.

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

AaAaAaA

  • Best score: 7
  • Best player score: 12
  • Position: #59 / 713
  • Number of attempts: 6
Delete to the end of the current line - 901 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 / 435
  • Number of attempts: 3
Collect List - 4342 entries

Convert to comma separated list.

  • Best score: 7
  • Best player score: 12
  • Position: #468 / 1200
  • Number of attempts: 2
I forgot quotes - 16255 entries

Oops.

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

We should all ace this, right?

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

entered into 11 challenges

contributed 0 challenges