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 - 572 entries

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

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

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

  • Best score: 32
  • Best player score: 41
  • Number of attempts: 4
Vice versa - 7084 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 8
I forgot quotes - 14977 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 5
Words in parens - 12292 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 5
One to Ten - 1845 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
Add semicolons - 8997 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 8
Swap values - 4261 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 3
Bad Copy Syntax - 1733 entries

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

  • Best score: 10
  • Best player score: 19
  • Number of attempts: 4
Cool or not? - 696 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 7
ninja substitution - 1087 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 10
Hogwarts Email Sorting - 626 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
Com(m)a Trouble - 2979 entries

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

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

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 11
Line under headers - 1628 entries

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

  • Best score: 24
  • Best player score: 30
  • Number of attempts: 6
Box it - 6826 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 12
Simple, Practical, and Common - 31316 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
One number per line - 17283 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 9
SCREAMING_SNAKE_CASE to Title Case - 877 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
Team names - 1675 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