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 - 2288 entries

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

  • Best score: 14
  • Best player score: 18
  • Position: #213 / 495
  • Number of attempts: 3
Filter number combinations that don't add to 11 - 377 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 / 111
  • Number of attempts: 3
HS exam question - 1510 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 49
  • Position: #47 / 397
  • Number of attempts: 24
Reformat symbols in list - 1474 entries

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

  • Best score: 24
  • Best player score: 25
  • Position: #83 / 325
  • 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 - 1265 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #175 / 416
  • Number of attempts: 4
2 quick changes and a numbered list - 599 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: #53 / 145
  • Number of attempts: 13
delete swap - 1551 entries

delete all swap

  • Best score: 5
  • Best player score: 10
  • Position: #394 / 486
  • Number of attempts: 2
Fix the shell script! - 2369 entries

Fix the shell script with the fewest keystrokes!

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

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

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

Convert the wikitext headings to markdown.

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

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #48 / 258
  • 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 - 1837 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #254 / 498
  • Number of attempts: 5
swap number pairs - 2011 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #105 / 370
  • 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 - 3675 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #491 / 827
  • Number of attempts: 1
Vertical Limit - 2448 entries

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

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

entered into 19 challenges

contributed 0 challenges