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 - 33379 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: #14 / 7363
  • Number of attempts: 5
Hogwarts Email Sorting - 877 entries

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

  • Best score: 20
  • Best player score: 37
  • Position: #235 / 254
  • Number of attempts: 2
Add text at some column - 154 entries

Complete golang struct statement.

  • Best score: 31
  • Best player score: 32
  • Position: #29 / 60
  • Number of attempts: 1
prepend * to every non-blank line - 6208 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #487 / 1517
  • Number of attempts: 1
One number per line - 18616 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #194 / 3842
  • Number of attempts: 7
Quote modules - 1053 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 21
  • Position: #14 / 273
  • Number of attempts: 4
add line and index - 88 entries

a missed line and index names need to be added

  • Best score: 44
  • Best player score: 45
  • Position: #4 / 27
  • Number of attempts: 3
Quote modules (ver.2) - 211 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 23
  • Position: #14 / 56
  • Number of attempts: 7
Swap values inside brackets - 2464 entries

Easy challenge.

  • Best score: 14
  • Best player score: 14
  • Position: #9 / 569
  • Number of attempts: 8
Applying same text modification in several lines - 2845 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #75 / 840
  • Number of attempts: 3
Add semicolons - 10792 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1340 / 3044
  • Number of attempts: 5
Com(m)a Trouble - 3668 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #212 / 826
  • Number of attempts: 5
Wrap the text of an email message to 79 characters - 679 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 6
  • Position: #334 / 386
  • Number of attempts: 1
Search and Replace 0 - 4790 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #640 / 1585
  • Number of attempts: 4
Just the middle - 11358 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #359 / 4163
  • Number of attempts: 6
Fiddle percentages into real numbers - 840 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 13
  • Position: #41 / 287
  • Number of attempts: 6
Vice versa - 7797 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Position: #629 / 2099
  • Number of attempts: 3
Triangle of arrows - 171 entries

I made this by accident when working on another challenge. How would you go about making this?

  • Best score: 14
  • Best player score: 19
  • Position: #19 / 40
  • Number of attempts: 1
Maze path - 36 entries

Follow the given motions and mark your path with Xs. Attention: This maze is quite big (20x20), please set your terminal size to at least 82.

  • Best score: 25
  • Best player score: 26
  • Position: #6 / 15
  • Number of attempts: 8
unknown command - 158 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #24 / 83
  • Number of attempts: 2
Collect List - 4264 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #40 / 1186
  • Number of attempts: 8
Square numbers - 99 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 31
  • Position: #25 / 40
  • Number of attempts: 1
I forgot quotes - 15931 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #223 / 4161
  • Number of attempts: 5
Words in parens - 12854 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1690 / 3945
  • Number of attempts: 8
Remove semicolons after expressions - 628 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 7
  • Position: #139 / 258
  • Number of attempts: 4
switch variable - 5031 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #968 / 1735
  • Number of attempts: 3
Ruby 1.9 hashes - 1221 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 13
  • Position: #178 / 401
  • Number of attempts: 3
Increment, increment, increment.... - 662 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #354 / 401
  • Number of attempts: 1
Reverse characters in a line - 709 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 12
  • Position: #14 / 249
  • Number of attempts: 6
Quark
Twitter:

entered into 29 challenges

contributed 0 challenges