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

Paste a column after a column - 2319 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 18
  • Position: #218 / 502
  • Number of attempts: 3
Filter number combinations that don't add to 11 - 378 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 29
  • Position: #79 / 112
  • Number of attempts: 3
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 12
  • Best player score: 49
  • Position: #49 / 400
  • Number of attempts: 24
Reformat symbols in list - 1477 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 25
  • Position: #83 / 327
  • Number of attempts: 12
Substraction (bis) - 579 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 23
  • Position: #29 / 108
  • Number of attempts: 15
Changing around text with citations - 323 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 39
  • Position: #47 / 89
  • Number of attempts: 5
Many duplicates - 1284 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #176 / 421
  • Number of attempts: 4
2 quick changes and a numbered list - 610 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 41
  • Position: #54 / 146
  • Number of attempts: 13
delete swap - 1574 entries

delete all swap

  • Best score: 5
  • Best player score: 10
  • Position: #399 / 493
  • Number of attempts: 2
Fix the shell script! - 2373 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 29
  • Position: #198 / 550
  • Number of attempts: 8
Put a newline after every 10 lines in vim - 1600 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #165 / 534
  • Number of attempts: 5
Wikitext headings to markdown - 983 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #32 / 205
  • Number of attempts: 7
Contribute to keyboard mashing - 855 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #48 / 261
  • Number of attempts: 7
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 24
  • Position: #34 / 135
  • Number of attempts: 21
Inverting Lines - 1850 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #256 / 501
  • Number of attempts: 5
swap number pairs - 2013 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #105 / 371
  • Number of attempts: 16
ssh config skills - 249 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 46
  • Position: #25 / 63
  • Number of attempts: 12
Com(m)a Trouble - 3690 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #494 / 832
  • Number of attempts: 1
Vertical Limit - 2479 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 39
  • Position: #727 / 744
  • Number of attempts: 1
John Huynh
Twitter:

entered into 19 challenges

contributed 0 challenges