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

Python: Def to Lambda - 191 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 27
  • Position: #65 / 67
  • Number of attempts: 1
Rural Post - 3757 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #239 / 928
  • Number of attempts: 4
Satisfy the go linter - 1556 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: 29
  • Position: #236 / 322
  • Number of attempts: 2
Add quotes to ansible playbook - 533 entries

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

  • Best score: 8
  • Best player score: 12
  • Position: #161 / 175
  • Number of attempts: 2
xrandr outputs and dashes - 528 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 22
  • Position: #164 / 175
  • Number of attempts: 4
From a Thunderlink to a Markdown link - 597 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 27
  • Position: #112 / 136
  • Number of attempts: 2
Yo To Hello - 915 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 12
  • Position: #387 / 431
  • Number of attempts: 3
Simple, Practical, and Common - 32752 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: 34
  • Position: #6289 / 7238
  • Number of attempts: 1
Hogwarts Email Sorting - 788 entries

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

  • Best score: 20
  • Best player score: 37
  • Position: #211 / 226
  • Number of attempts: 2
Get mail address from outlook format - 549 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #44 / 170
  • Number of attempts: 5
Swap values - 4401 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1060 / 1233
  • Number of attempts: 4
prepend * to every non-blank line - 5800 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #264 / 1427
  • Number of attempts: 7
One number per line - 18255 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2498 / 3765
  • Number of attempts: 2
Quote modules - 981 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #168 / 250
  • Number of attempts: 1
Swap values inside brackets - 2404 entries

Easy challenge.

  • Best score: 14
  • Best player score: 14
  • Position: #92 / 555
  • Number of attempts: 11
V to the i - 4600 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #743 / 1839
  • Number of attempts: 5
Add string initializers to an enum - 726 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 29
  • Position: #195 / 218
  • Number of attempts: 1
SCREAMING_SNAKE_CASE to Title Case - 1070 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 34
  • Position: #195 / 224
  • Number of attempts: 3
Add semicolons - 10448 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #607 / 2958
  • Number of attempts: 6
Bad Copy Syntax - 1883 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #194 / 479
  • Number of attempts: 5
remove lines containing the word "reader" - 3426 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #433 / 1110
  • Number of attempts: 4
Box it - 7637 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 33
  • Position: #1511 / 1824
  • Number of attempts: 1
Basic renumbering - 5395 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #233 / 1219
  • Number of attempts: 13
ninja substitution - 1254 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 18
  • Position: #169 / 240
  • Number of attempts: 1
Vice versa - 7430 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #564 / 2015
  • Number of attempts: 7
I forgot quotes - 15647 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3308 / 4096
  • Number of attempts: 4
Simple text editing with Vim - 11386 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #2493 / 3345
  • Number of attempts: 2
Theo Sarrazin
Twitter:

entered into 27 challenges

contributed 0 challenges