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: 22
  • Position: #2029 / 7422
  • Number of attempts: 8
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: 20
  • Position: #5 / 262
  • Number of attempts: 4
Swap values - 4622 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #501 / 1269
  • Number of attempts: 3
One number per line - 18732 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1944 / 3865
  • Number of attempts: 9
Aliases for cd - 879 entries

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

  • Best score: 30
  • Best player score: 59
  • Position: #123 / 155
  • Number of attempts: 1
Add string initializers to an enum - 872 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Position: #39 / 258
  • Number of attempts: 11
SCREAMING_SNAKE_CASE to Title Case - 1214 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: 20
  • Position: #90 / 249
  • Number of attempts: 9
Add semicolons - 10867 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #370 / 3065
  • Number of attempts: 8
Bad Copy Syntax - 2038 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #162 / 526
  • Number of attempts: 4
Com(m)a Trouble - 3829 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #90 / 866
  • Number of attempts: 10
Box it - 7906 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #256 / 1877
  • Number of attempts: 12
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 17
  • Position: #128 / 230
  • Number of attempts: 7
Team names - 1836 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #395 / 588
  • Number of attempts: 6
ninja substitution - 1420 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 18
  • Position: #186 / 267
  • Number of attempts: 10
Vice versa - 7910 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #519 / 2129
  • Number of attempts: 8
One to Ten - 2219 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: #233 / 672
  • Number of attempts: 6
Line under headers - 2045 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 30
  • Position: #281 / 504
  • Number of attempts: 6
I forgot quotes - 15990 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1374 / 4182
  • Number of attempts: 5
Words in parens - 12939 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1783 / 3964
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 7008 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 41
  • Position: #922 / 1712
  • Number of attempts: 4
Karnival K
Twitter:

entered into 20 challenges

contributed 0 challenges