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

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #241 / 475
  • Number of attempts: 1
Contribute to keyboard mashing - 680 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #69 / 205
  • Number of attempts: 4
RUST match with enum for Coin - 145 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 84
  • Best player score: 116
  • Position: #29 / 41
  • Number of attempts: 2
Change double quotes to single quotes, but with a twist - 258 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: #23 / 49
  • Number of attempts: 8
Rural Post - 4138 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #302 / 1023
  • Number of attempts: 4
Satisfy the go linter - 2025 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: #264 / 408
  • Number of attempts: 2
Simple, Practical, and Common - 32992 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 / 7283
  • Number of attempts: 6
Hogwarts Email Sorting - 837 entries

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

  • Best score: 20
  • Best player score: 23
  • Position: #165 / 241
  • Number of attempts: 2
prepend * to every non-blank line - 6030 entries

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

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

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Position: #47 / 260
  • 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: 66
  • Position: #122 / 146
  • Number of attempts: 1
Add semicolons - 10707 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1557 / 3013
  • Number of attempts: 2
Box it - 7696 entries

Create a box around a line.

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

Clean and group.

  • Best score: 17
  • Best player score: 45
  • Position: #155 / 167
  • Number of attempts: 1
Flip the bit - 111 entries

Change the specific 0 to a 1.

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

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1361 / 4119
  • Number of attempts: 6
Increment, increment, increment.... - 599 entries

Vim likes macros

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

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 6
  • Position: #130 / 139
  • 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