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 - 34012 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 / 7513
  • Number of attempts: 8
Hogwarts Email Sorting - 954 entries

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

  • Best score: 20
  • Best player score: 20
  • Position: #5 / 272
  • Number of attempts: 4
Swap values - 4705 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #505 / 1293
  • Number of attempts: 3
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1957 / 3904
  • Number of attempts: 9
Aliases for cd - 913 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: #126 / 160
  • Number of attempts: 1
Add string initializers to an enum - 903 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Position: #39 / 266
  • Number of attempts: 11
SCREAMING_SNAKE_CASE to Title Case - 1273 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: #91 / 266
  • Number of attempts: 9
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

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

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

  • Best score: 18
  • Best player score: 19
  • Position: #164 / 543
  • Number of attempts: 4
Com(m)a Trouble - 3993 entries

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

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

Create a box around a line.

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

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 17
  • Position: #132 / 237
  • Number of attempts: 7
Team names - 1861 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #401 / 596
  • Number of attempts: 6
ninja substitution - 1439 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 18
  • Position: #189 / 271
  • Number of attempts: 10
Vice versa - 8019 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #519 / 2157
  • Number of attempts: 8
One to Ten - 2258 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 / 688
  • Number of attempts: 6
Line under headers - 2095 entries

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

  • Best score: 24
  • Best player score: 30
  • Position: #288 / 515
  • Number of attempts: 6
I forgot quotes - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1387 / 4224
  • Number of attempts: 5
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1798 / 3991
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 7681 entries

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

  • Best score: 7
  • Best player score: 41
  • Position: #979 / 1889
  • Number of attempts: 4
Karnival K
Twitter:

entered into 20 challenges

contributed 0 challenges