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: #2068 / 7422
  • Number of attempts: 9
Hogwarts Email Sorting - 928 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 22
  • Position: #134 / 262
  • Number of attempts: 6
prepend * to every non-blank line - 6318 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #16 / 1539
  • Number of attempts: 10
One number per line - 18732 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #605 / 3865
  • Number of attempts: 20
Add semicolons - 10867 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #424 / 3065
  • Number of attempts: 10
remove lines containing the word "reader" - 3590 entries

easy stuff

  • Best score: 9
  • Best player score: 15
  • Position: #1082 / 1163
  • Number of attempts: 3
Just the middle - 11458 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1344 / 4199
  • Number of attempts: 7
Two become one - 713 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 42
  • Position: #189 / 208
  • Number of attempts: 1
Where should I put the Newline? - 881 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #272 / 437
  • Number of attempts: 1
Shuffle puzzle - 346 entries

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

  • Best score: 13
  • Best player score: 16
  • Position: #75 / 104
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10669 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #2952 / 3684
  • Number of attempts: 1
Letter case trickery - 1630 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 14
  • Position: #435 / 518
  • Number of attempts: 1
quotes inside quotes - 3165 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Position: #829 / 1079
  • Number of attempts: 1
Words in parens - 12939 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 27
  • Position: #3824 / 3964
  • Number of attempts: 1
Simple text editing with Vim - 12822 entries

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

  • Best score: 13
  • Best player score: 24
  • Position: #3089 / 3698
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7008 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 41
  • Position: #901 / 1712
  • Number of attempts: 4
David Hume
Twitter:

Eng/market analyst, python/data geek, open source/ linux/ distributed systems enthusiast, dad and caver.

entered into 16 challenges

contributed 0 challenges