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 - 33086 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: #6430 / 7297
  • Number of attempts: 1
Hogwarts Email Sorting - 841 entries

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

  • Best score: 20
  • Best player score: 33
  • Position: #216 / 243
  • Number of attempts: 3
Get mail address from outlook format - 603 entries

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

  • Best score: 15
  • Best player score: 27
  • Position: #172 / 189
  • Number of attempts: 2
prepend * to every non-blank line - 6081 entries

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

  • Best score: 10
  • Best player score: 24
  • Position: #1381 / 1485
  • Number of attempts: 1
One number per line - 18472 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #2896 / 3807
  • Number of attempts: 2
Quote modules - 1023 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #171 / 262
  • Number of attempts: 2
citizen_hacks_2019_challenge2 - 183 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Position: #73 / 94
  • Number of attempts: 3
V to the i - 4647 entries

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

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #1991 / 3020
  • Number of attempts: 2
citizen_hacks_2019_challenge3 - 31 entries

For the Citizen Hacks 2019 Vim competition.

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

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 33
  • Position: #93 / 114
  • Number of attempts: 2
comment and uncomment code inline - 1033 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: #237 / 303
  • Number of attempts: 2
Team names - 1789 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 21
  • Position: #494 / 574
  • Number of attempts: 2
Adam's challenge - 922 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: #226 / 260
  • Number of attempts: 2
citizen_hacks_2019_challenge4 - 77 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 6
  • Position: #46 / 54
  • Number of attempts: 2
citizen_hacks_2019_challenge6 - 53 entries

For the Citizen Hacks 2019 Vim competition.

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

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3211 / 4130
  • Number of attempts: 1
citizen_hacks_2019_challenge1 - 44 entries

For the Citizen Hacks 2019 Vim competition

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

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

  • Best score: 13
  • Best player score: 19
  • Position: #2574 / 3461
  • 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