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 - 32904 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: #6407 / 7270
  • Number of attempts: 1
Hogwarts Email Sorting - 828 entries

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

  • Best score: 20
  • Best player score: 33
  • Position: #211 / 237
  • Number of attempts: 3
Get mail address from outlook format - 592 entries

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

  • Best score: 15
  • Best player score: 27
  • Position: #165 / 182
  • Number of attempts: 2
prepend * to every non-blank line - 5959 entries

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

  • Best score: 10
  • Best player score: 24
  • Position: #1362 / 1463
  • Number of attempts: 1
One number per line - 18377 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #2882 / 3787
  • Number of attempts: 2
Quote modules - 1015 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #167 / 258
  • Number of attempts: 2
citizen_hacks_2019_challenge2 - 173 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Position: #69 / 86
  • Number of attempts: 3
V to the i - 4639 entries

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

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #1965 / 2988
  • Number of attempts: 2
citizen_hacks_2019_challenge3 - 28 entries

For the Citizen Hacks 2019 Vim competition.

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

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 33
  • Position: #89 / 110
  • Number of attempts: 2
comment and uncomment code inline - 995 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: #232 / 296
  • Number of attempts: 2
Team names - 1777 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 21
  • Position: #491 / 570
  • Number of attempts: 2
Adam's challenge - 916 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: #223 / 257
  • Number of attempts: 2
citizen_hacks_2019_challenge4 - 74 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 6
  • Position: #43 / 51
  • Number of attempts: 2
citizen_hacks_2019_challenge6 - 50 entries

For the Citizen Hacks 2019 Vim competition.

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

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3197 / 4114
  • Number of attempts: 1
citizen_hacks_2019_challenge1 - 35 entries

For the Citizen Hacks 2019 Vim competition

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

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

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