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

Making 3 line function a one liner. - 329 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 6
  • Position: #190 / 206
  • Number of attempts: 3
swap number pairs - 2115 entries

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

  • Best score: 16
  • Best player score: 55
  • Position: #360 / 384
  • Number of attempts: 2
HS Final exam vimgolf - 904 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #98 / 238
  • Number of attempts: 6
Python: Def to Lambda - 455 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #41 / 156
  • Number of attempts: 7
Rural Post - 4552 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #653 / 1110
  • 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: 33
  • Position: #392 / 481
  • Number of attempts: 2
Add quotes to ansible playbook - 1007 entries

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

  • Best score: 8
  • Best player score: 10
  • Position: #238 / 316
  • Number of attempts: 3
Multiline to Single Line - 735 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #137 / 311
  • Number of attempts: 1
Simple, Practical, and Common - 33742 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: 34
  • Position: #6442 / 7447
  • Number of attempts: 1
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: 30
  • Position: #226 / 262
  • Number of attempts: 1
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1095 / 1274
  • Number of attempts: 1
prepend * to every non-blank line - 6353 entries

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

  • Best score: 10
  • Best player score: 20
  • Position: #1258 / 1549
  • Number of attempts: 1
One number per line - 18776 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 37
  • Position: #3780 / 3875
  • Number of attempts: 2
Refactor typescript arrow function type - 323 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 34
  • Position: #65 / 71
  • Number of attempts: 1
Add semicolons - 10887 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1349 / 3074
  • Number of attempts: 7
Com(m)a Trouble - 3880 entries

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

  • Best score: 12
  • Best player score: 51
  • Position: #850 / 878
  • Number of attempts: 1
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 29
  • Position: #1346 / 1881
  • Number of attempts: 4
Just the middle - 11495 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3021 / 4213
  • Number of attempts: 4
Vice versa - 7953 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1667 / 2140
  • Number of attempts: 7
One to Ten - 2227 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: 24
  • Position: #641 / 677
  • Number of attempts: 1
Change part of a function name in multiple occurrences - 662 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 18
  • Position: #179 / 208
  • Number of attempts: 1
Mute the second method of this script - 455 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #142 / 239
  • Number of attempts: 2
I forgot quotes - 16038 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2711 / 4192
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10688 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2852 / 3691
  • Number of attempts: 2
Words in parens - 12967 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3513 / 3969
  • Number of attempts: 3
Reformat some Python - 626 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 45
  • Position: #150 / 239
  • Number of attempts: 2
Joe Farnsworth
Twitter:

Electrical engineering

entered into 26 challenges

contributed 0 challenges