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

Python dataclasses - 52 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 21
  • Number of attempts: 2
RUST Cargo.toml version to last - 98 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 5
Put a cross in the square - 43 entries

Put a cross in the square

  • Best score: 22
  • Best player score: 23
  • Number of attempts: 3
swap number pairs - 1037 entries

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

  • Best score: 16
  • Best player score: 35
  • Number of attempts: 4
HS Final exam vimgolf - 418 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
  • Number of attempts: 8
Easy modification of ssh config - 112 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 43
  • Number of attempts: 1
Python: Def to Lambda - 110 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 3
Rural Post - 3622 entries

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

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 5
Satisfy the go linter - 1464 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
  • Number of attempts: 10
Add quotes to ansible playbook - 398 entries

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

  • Best score: 8
  • Best player score: 9
  • Number of attempts: 1
Multiline to Single Line - 256 entries

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

  • Best score: 5
  • Best player score: 6
  • Number of attempts: 1
xrandr outputs and dashes - 480 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
  • Number of attempts: 5
Reconstruct the actual output from my unit test tool report - 107 entries

When a test fails, my unit test tool reports differences between the actual output and the expected output as follow: - line in the expected output but missing in the actual output are prefixed with a dash - unexpected lines in the actual output are prefixed with a plus sign - comments added by the unit test tool are prefixed with a question mark - common lines are showed `as-is` (well, almost;) From that "diff" format, I would like to reconstruct the actual output.

  • Best score: 16
  • Best player score: 20
  • Number of attempts: 4
Get mail address from outlook format - 496 entries

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

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 3
prepend * to every non-blank line - 5702 entries

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

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 9
Quote modules (ver.2) - 153 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 24
  • Number of attempts: 5
Refactor typescript arrow function type - 264 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 10
change parenthesis - 231 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
Remove quotes after first field - 275 entries

Remove the quotes around each field except for the first field.

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 10
Join 'em - 199 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 7
  • Number of attempts: 1
Add semicolons - 10286 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 9
Box it - 7592 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 10
remove lines containing the word "reader" - 3410 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 6
Applying same text modification in several lines - 2697 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 5
Com(m)a Trouble - 3264 entries

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

  • Best score: 7
  • Best player score: 12
  • Number of attempts: 9
Number Sort - 278 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 3
Hello ${world} - 285 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 24
  • Number of attempts: 1
Todo list specification - 342 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 38
  • Number of attempts: 1
From argument to object - 1246 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 18
  • Number of attempts: 2
Paragraph breaks - 460 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
ascii-art diamond - 34 entries

Simple ascii-art diamond. The grid is 40x40.

  • Best score: 40
  • Best player score: 46
  • Number of attempts: 1
One number per line - 18189 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 34
  • Number of attempts: 1
Vice versa - 7383 entries

Little role switching.

  • Best score: 12
  • Best player score: 23
  • Number of attempts: 5
Simple, Practical, and Common - 32648 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: 9
Just the middle - 11070 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
I forgot quotes - 15627 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 4
Basic renumbering - 5393 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 12
A HAPPY NEW YEAR 2014 ! - 10507 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 2
Words in parens - 12674 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 5781 entries

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

  • Best score: 32
  • Best player score: 54
  • Number of attempts: 2
김범준
Twitter:

반갑습니다.

entered into 40 challenges

contributed 0 challenges