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: 35
  • Position: #6534 / 7422
  • Number of attempts: 1
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: 33
  • Position: #234 / 262
  • Number of attempts: 3
Get mail address from outlook format - 649 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 27
  • Position: #185 / 204
  • Number of attempts: 2
prepend * to every non-blank line - 6312 entries

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

  • Best score: 10
  • Best player score: 24
  • Position: #1431 / 1537
  • Number of attempts: 1
One number per line - 18732 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #2934 / 3865
  • Number of attempts: 2
Quote modules - 1084 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #184 / 281
  • Number of attempts: 2
citizen_hacks_2019_challenge2 - 195 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Position: #78 / 102
  • Number of attempts: 3
V to the i - 4806 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #533 / 1894
  • Number of attempts: 2
Add semicolons - 10860 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #2026 / 3064
  • Number of attempts: 2
citizen_hacks_2019_challenge3 - 38 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 4
  • Best player score: 4
  • Position: #11 / 35
  • Number of attempts: 1
Array propagate - 338 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 33
  • Position: #97 / 119
  • Number of attempts: 2
comment and uncomment code inline - 1122 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 12
  • Position: #252 / 322
  • Number of attempts: 2
Team names - 1836 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 21
  • Position: #504 / 588
  • Number of attempts: 2
Adam's challenge - 984 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 25
  • Position: #234 / 270
  • Number of attempts: 2
citizen_hacks_2019_challenge4 - 95 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 6
  • Position: #55 / 65
  • Number of attempts: 2
citizen_hacks_2019_challenge6 - 65 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Position: #13 / 51
  • Number of attempts: 1
I forgot quotes - 15989 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3248 / 4181
  • Number of attempts: 1
citizen_hacks_2019_challenge1 - 51 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Position: #8 / 45
  • Number of attempts: 1
Simple text editing with Vim - 12815 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #2730 / 3696
  • Number of attempts: 1
Ahmed Hasan
Twitter:

PhD candidate in evolutionary genomics studying recombination with @RobWNess at @UofT. Digs #rstats, Python, open science, population genetics, and guitars.

entered into 19 challenges

contributed 0 challenges