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 - 578 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: #103 / 156
  • Number of attempts: 5
Easy modification of ssh config - 166 entries

Just add another alias to each worker

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

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #7 / 80
  • Number of attempts: 3
Format the CSS - 57 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: #16 / 24
  • Number of attempts: 6
Rural Post - 3807 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #186 / 940
  • Number of attempts: 8
Satisfy the go linter - 1625 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 / 334
  • Number of attempts: 14
Add quotes to ansible playbook - 597 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #9 / 190
  • Number of attempts: 5
xrandr outputs and dashes - 572 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 / 185
  • Number of attempts: 6
Simple, Practical, and Common - 32781 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 / 7242
  • Number of attempts: 19
Get mail address from outlook format - 560 entries

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

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

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

  • Best score: 10
  • Best player score: 20
  • Position: #1190 / 1434
  • Number of attempts: 1
One number per line - 18295 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #989 / 3770
  • Number of attempts: 19
V to the i - 4617 entries

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

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

Simply add a semicolon at the end of each line

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

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #424 / 1113
  • Number of attempts: 3
multiple cursor alternative - 1441 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: #203 / 368
  • Number of attempts: 9
Copy three lines - 2767 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #240 / 620
  • Number of attempts: 12
Just the middle - 11086 entries

Delete the instructions at the top and bottom.

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

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1542 / 2023
  • Number of attempts: 3
Array transposition - 2271 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 25
  • Position: #281 / 427
  • Number of attempts: 10
I forgot quotes - 15668 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2313 / 4099
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10515 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2758 / 3630
  • Number of attempts: 2
Words in parens - 12690 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #813 / 3906
  • Number of attempts: 11
switch variable - 4881 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 28
  • Position: #1667 / 1694
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5874 entries

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

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

Cloud Native Engineer @containersoluti

entered into 25 challenges

contributed 0 challenges