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

Rural Post - 4563 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #342 / 1113
  • Number of attempts: 9
Satisfy the go linter - 2448 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 26
  • Position: #295 / 484
  • Number of attempts: 3
Add quotes to ansible playbook - 1008 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 9
  • Position: #141 / 317
  • Number of attempts: 2
Simple, Practical, and Common - 33757 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: 23
  • Position: #2720 / 7450
  • Number of attempts: 7
Hogwarts Email Sorting - 930 entries

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

  • Best score: 20
  • Best player score: 22
  • Position: #123 / 263
  • Number of attempts: 2
Swap values - 4644 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #333 / 1275
  • Number of attempts: 7
prepend * to every non-blank line - 6358 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #462 / 1551
  • Number of attempts: 1
Quote modules - 1094 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #184 / 285
  • Number of attempts: 3
Aliases for cd - 881 entries

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

  • Best score: 30
  • Best player score: 45
  • Position: #76 / 156
  • Number of attempts: 13
Add semicolons - 10891 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1250 / 3077
  • Number of attempts: 5
Bad Copy Syntax - 2050 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 21
  • Position: #304 / 533
  • Number of attempts: 6
Com(m)a Trouble - 3890 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #453 / 882
  • Number of attempts: 3
Box it - 7939 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #275 / 1885
  • Number of attempts: 5
Search and Replace 0 - 5007 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1069 / 1631
  • Number of attempts: 1
One to Ten - 2234 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Position: #304 / 679
  • Number of attempts: 3
Collect List - 4308 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 15
  • Position: #747 / 1192
  • Number of attempts: 2
Mute the second method of this script - 455 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #127 / 239
  • Number of attempts: 3
I forgot quotes - 16051 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #979 / 4194
  • Number of attempts: 6
quotes inside quotes - 3182 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: #945 / 1085
  • Number of attempts: 1
Simple text editing with Vim - 13093 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1837 / 3766
  • Number of attempts: 3
Gytis Vinclovas
Twitter:

Software engineer @Wix

entered into 20 challenges

contributed 0 challenges