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 - 33964 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: 30
  • Position: #5329 / 7500
  • Number of attempts: 2
prepend * to every non-blank line - 6388 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #194 / 1559
  • Number of attempts: 4
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1984 / 3898
  • Number of attempts: 6
Swap values inside brackets - 2545 entries

Easy challenge.

  • Best score: 13
  • Best player score: 21
  • Position: #444 / 591
  • Number of attempts: 1
Add semicolons - 10932 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1474 / 3091
  • Number of attempts: 6
remove lines containing the word "reader" - 3643 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #696 / 1181
  • Number of attempts: 1
Just the middle - 11572 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3077 / 4240
  • Number of attempts: 3
Delete to the end of the current line - 865 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #203 / 415
  • Number of attempts: 2
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 13
  • Position: #1438 / 4216
  • Number of attempts: 4
Simple text editing with Vim - 13509 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 26
  • Position: #3358 / 3874
  • Number of attempts: 1
Reynald Havard
Twitter:

entered into 10 challenges

contributed 0 challenges