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 - 32910 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: #2030 / 7271
  • Number of attempts: 8
Hogwarts Email Sorting - 828 entries

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

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

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #493 / 1241
  • Number of attempts: 3
One number per line - 18378 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1912 / 3788
  • Number of attempts: 9
Aliases for cd - 819 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: #115 / 146
  • Number of attempts: 1
Add string initializers to an enum - 765 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Position: #39 / 226
  • Number of attempts: 11
SCREAMING_SNAKE_CASE to Title Case - 1117 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: #82 / 232
  • Number of attempts: 9
Add semicolons - 10539 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #371 / 2988
  • Number of attempts: 8
Bad Copy Syntax - 1938 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #156 / 493
  • Number of attempts: 4
Com(m)a Trouble - 3376 entries

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #257 / 1835
  • Number of attempts: 12
Cool or not? - 761 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 17
  • Position: #120 / 216
  • Number of attempts: 7
Team names - 1777 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #384 / 570
  • Number of attempts: 6
ninja substitution - 1300 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 18
  • Position: #171 / 247
  • Number of attempts: 10
Vice versa - 7522 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #519 / 2044
  • Number of attempts: 8
One to Ten - 2093 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 / 641
  • Number of attempts: 6
Line under headers - 1918 entries

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

  • Best score: 24
  • Best player score: 30
  • Position: #264 / 472
  • Number of attempts: 6
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1355 / 4115
  • Number of attempts: 5
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1758 / 3919
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6015 entries

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

  • Best score: 32
  • Best player score: 41
  • Position: #846 / 1482
  • Number of attempts: 4
Karnival K
Twitter:

entered into 20 challenges

contributed 0 challenges