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

HS Final exam vimgolf - 782 entries

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

  • Best score: 21
  • Best player score: 34
  • Position: #142 / 209
  • Number of attempts: 5
Easy modification of ssh config - 289 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 24
  • Position: #8 / 90
  • Number of attempts: 6
Python: Def to Lambda - 396 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #7 / 136
  • Number of attempts: 3
Format the CSS - 109 entries

You just copied some CSS color names from the web and need to add them to your python module. Create the COLORS variable and assign a dict() with the names as keys and hex-colors as values. BEWARE OF THE TABS!!

  • Best score: 41
  • Best player score: 47
  • Position: #25 / 40
  • Number of attempts: 6
Rural Post - 4197 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #206 / 1035
  • Number of attempts: 8
Satisfy the go linter - 2041 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: #23 / 416
  • Number of attempts: 14
Add quotes to ansible playbook - 829 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #9 / 261
  • Number of attempts: 5
xrandr outputs and dashes - 619 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: #68 / 202
  • Number of attempts: 6
Simple, Practical, and Common - 33086 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: #1119 / 7297
  • Number of attempts: 19
Get mail address from outlook format - 603 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #57 / 189
  • Number of attempts: 6
prepend * to every non-blank line - 6081 entries

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

  • Best score: 10
  • Best player score: 20
  • Position: #1233 / 1485
  • Number of attempts: 1
One number per line - 18472 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #1007 / 3807
  • Number of attempts: 19
V to the i - 4647 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #758 / 1861
  • Number of attempts: 4
Add semicolons - 10717 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #668 / 3020
  • Number of attempts: 14
remove lines containing the word "reader" - 3483 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #424 / 1128
  • Number of attempts: 3
multiple cursor alternative - 1452 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 21
  • Position: #205 / 371
  • Number of attempts: 9
Copy three lines - 2819 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 15
  • Position: #245 / 629
  • Number of attempts: 12
Just the middle - 11284 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #999 / 4140
  • Number of attempts: 10
Vice versa - 7615 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1562 / 2064
  • Number of attempts: 3
Array transposition - 2321 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 25
  • Position: #286 / 434
  • Number of attempts: 10
I forgot quotes - 15830 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2334 / 4130
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10562 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2774 / 3646
  • Number of attempts: 2
Words in parens - 12786 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #822 / 3928
  • Number of attempts: 11
switch variable - 4980 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 28
  • Position: #1690 / 1717
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6195 entries

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

  • Best score: 32
  • Best player score: 47
  • Position: #1185 / 1525
  • Number of attempts: 1
MathijsHoogland
Twitter:

Cloud Native Engineer @containersoluti

entered into 25 challenges

contributed 0 challenges