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

Aliases for cd - 234 entries

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

  • Best score: 31
  • Best player score: 59
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5590 entries

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

  • Best score: 32
  • Best player score: 41
  • Number of attempts: 4
Simple, Practical, and Common - 28227 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
  • Number of attempts: 8
Box it - 5136 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 12
Add string initializers to an enum - 541 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 11
Bad Copy Syntax - 1364 entries

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

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 4
One number per line - 15185 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 9
Line under headers - 1067 entries

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

  • Best score: 25
  • Best player score: 30
  • Number of attempts: 6
Vice versa - 6510 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 8
Hogwarts Email Sorting - 227 entries

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

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 4
I forgot quotes - 13457 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 5
Add semicolons - 6258 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 8
Com(m)a Trouble - 2440 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 10
ninja substitution - 861 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 10
Words in parens - 11684 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 5
One to Ten - 1545 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
  • Number of attempts: 6
Cool or not? - 588 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 7
SCREAMING_SNAKE_CASE to Title Case - 686 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
  • Number of attempts: 9
Swap values - 3961 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 3
Team names - 1588 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 6
Karnival K
Twitter:

entered into 20 challenges

contributed 0 challenges