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

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #109 / 397
  • Number of attempts: 2
Fill in the chess board - 465 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 47
  • Position: #78 / 103
  • Number of attempts: 2
Plotting some variables in python - 1111 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 34
  • Position: #32 / 235
  • Number of attempts: 9
Inverting Lines - 1261 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 12
  • Position: #201 / 350
  • Number of attempts: 3
Python dataclasses - 629 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #42 / 164
  • Number of attempts: 7
Modernise code - 805 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #46 / 186
  • Number of attempts: 15
swap number pairs - 1409 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 26
  • Position: #139 / 276
  • Number of attempts: 3
HS Final exam vimgolf - 630 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 22
  • Position: #55 / 170
  • Number of attempts: 8
Rural Post - 4072 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #409 / 1008
  • Number of attempts: 4
Satisfy the go linter - 1996 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: 20
  • Position: #119 / 400
  • Number of attempts: 6
Add quotes to ansible playbook - 775 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 8
  • Position: #60 / 245
  • Number of attempts: 4
Multiline to Single Line - 514 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #168 / 232
  • Number of attempts: 3
xrandr outputs and dashes - 587 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #127 / 191
  • Number of attempts: 4
From a Thunderlink to a Markdown link - 694 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 18
  • Position: #53 / 154
  • Number of attempts: 9
Capitalize the Names - 307 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 21
  • Position: #39 / 78
  • Number of attempts: 4
Yo To Hello - 1042 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #349 / 477
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 1025 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 21
  • Position: #40 / 207
  • Number of attempts: 8
Hogwarts Email Sorting - 818 entries

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

  • Best score: 20
  • Best player score: 21
  • Position: #93 / 235
  • Number of attempts: 5
Get mail address from outlook format - 586 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 15
  • Position: #71 / 180
  • Number of attempts: 2
Quote modules - 1013 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 21
  • Position: #36 / 257
  • 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: 40
  • Position: #56 / 146
  • Number of attempts: 4
Alphabet soup - 378 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 25
  • Position: #13 / 90
  • Number of attempts: 7
ややお
Twitter:

川崎市に移住後、川崎フロンターレのサポーターになりました。

entered into 22 challenges

contributed 0 challenges