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

hello-world-vimgolf - 2501 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #363 / 709
  • Number of attempts: 1
Contribute to keyboard mashing - 890 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #82 / 270
  • Number of attempts: 4
RUST match with enum for Coin - 183 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 84
  • Best player score: 116
  • Position: #38 / 53
  • Number of attempts: 2
Change double quotes to single quotes, but with a twist - 309 entries

Although this challenge is in the context of a Python function, you don't need to know Python to do this challenge. It is to add contexts and interesting constraints. The file contains a function that prints a multi-line string literal. I wrote the string literal with double quotes, but then I decided to use single quotes instead, and that's your challenge. However, interestingly enough, the string itself contains single and double quotes. This means, inside the string literal, the originally escaped double quotes no longer need to be escaped, but the single quotes now need to be escaped. Note that the triple double quotes in the docstring should be left alone.

  • Best score: 22
  • Best player score: 24
  • Position: #28 / 56
  • Number of attempts: 8
Rural Post - 4532 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #330 / 1107
  • Number of attempts: 4
Satisfy the go linter - 2437 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 27
  • Position: #316 / 481
  • Number of attempts: 2
Simple, Practical, and Common - 33724 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: #1723 / 7442
  • Number of attempts: 6
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: 23
  • Position: #180 / 262
  • Number of attempts: 2
prepend * to every non-blank line - 6337 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #289 / 1546
  • Number of attempts: 5
Quote modules - 1090 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Position: #52 / 283
  • 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: 66
  • Position: #130 / 155
  • Number of attempts: 1
Add semicolons - 10881 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1573 / 3072
  • Number of attempts: 2
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #62 / 1881
  • Number of attempts: 12
Two pairs of cluster of letters creates word - 749 entries

Clean and group.

  • Best score: 17
  • Best player score: 45
  • Position: #166 / 178
  • Number of attempts: 1
Flip the bit - 129 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Position: #28 / 74
  • Number of attempts: 1
I forgot quotes - 16022 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1379 / 4189
  • Number of attempts: 6
Increment, increment, increment.... - 692 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #40 / 410
  • Number of attempts: 2
Almost encrypted - 204 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 6
  • Position: #137 / 146
  • Number of attempts: 2
TheSemicolon
Twitter:

lazy, foolish programmer that does nothing but waste time. Sometimes messes with SerenityOS 🐞

entered into 18 challenges

contributed 0 challenges